home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / wx / _controls.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  298.5 KB  |  7,782 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import _controls_
  5.  
  6. def _swig_setattr_nondynamic(self, class_type, name, value, static = 1):
  7.     if name == 'this':
  8.         if isinstance(value, class_type):
  9.             self.__dict__[name] = value.this
  10.             if hasattr(value, 'thisown'):
  11.                 self.__dict__['thisown'] = value.thisown
  12.             
  13.             del value.thisown
  14.             return None
  15.         
  16.     
  17.     method = class_type.__swig_setmethods__.get(name, None)
  18.     if method:
  19.         return method(self, value)
  20.     
  21.     if not static and hasattr(self, name) or name == 'thisown':
  22.         self.__dict__[name] = value
  23.     else:
  24.         raise AttributeError('You cannot add attributes to %s' % self)
  25.  
  26.  
  27. def _swig_setattr(self, class_type, name, value):
  28.     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  29.  
  30.  
  31. def _swig_getattr(self, class_type, name):
  32.     method = class_type.__swig_getmethods__.get(name, None)
  33.     if method:
  34.         return method(self)
  35.     
  36.     raise AttributeError, name
  37.  
  38. import types
  39.  
  40. try:
  41.     _object = types.ObjectType
  42.     _newclass = 1
  43. except AttributeError:
  44.     
  45.     class _object:
  46.         pass
  47.  
  48.     _newclass = 0
  49.  
  50. del types
  51.  
  52. def _swig_setattr_nondynamic_method(set):
  53.     
  54.     def set_attr(self, name, value):
  55.         if hasattr(self, name) or name in ('this', 'thisown'):
  56.             set(self, name, value)
  57.         else:
  58.             raise AttributeError('You cannot add attributes to %s' % self)
  59.  
  60.     return set_attr
  61.  
  62. import _core
  63. wx = _core
  64. BU_LEFT = _controls_.BU_LEFT
  65. BU_TOP = _controls_.BU_TOP
  66. BU_RIGHT = _controls_.BU_RIGHT
  67. BU_BOTTOM = _controls_.BU_BOTTOM
  68. BU_ALIGN_MASK = _controls_.BU_ALIGN_MASK
  69. BU_EXACTFIT = _controls_.BU_EXACTFIT
  70. BU_AUTODRAW = _controls_.BU_AUTODRAW
  71.  
  72. class Button(_core.Control):
  73.     '''
  74.     A button is a control that contains a text string, and is one of the most
  75.     common elements of a GUI.  It may be placed on a dialog box or panel, or
  76.     indeed almost any other window.
  77.     '''
  78.     
  79.     def __repr__(self):
  80.         return '<%s.%s; proxy of C++ wxButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  81.  
  82.     
  83.     def __init__(self, *args, **kwargs):
  84.         '''
  85.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  86.             Point pos=DefaultPosition, Size size=DefaultSize, 
  87.             long style=0, Validator validator=DefaultValidator, 
  88.             String name=ButtonNameStr) -> Button
  89.  
  90.         Create and show a button.  The preferred way to create standard
  91.         buttons is to use a standard ID and an empty label.  In this case
  92.         wxWigets will automatically use a stock label that coresponds to the
  93.         ID given.  In additon, the button will be decorated with stock icons
  94.         under GTK+ 2.
  95.         '''
  96.         newobj = _controls_.new_Button(*args, **kwargs)
  97.         self.this = newobj.this
  98.         self.thisown = 1
  99.         del newobj.thisown
  100.         self._setOORInfo(self)
  101.  
  102.     
  103.     def Create(*args, **kwargs):
  104.         '''
  105.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  106.             Point pos=DefaultPosition, Size size=DefaultSize, 
  107.             long style=0, Validator validator=DefaultValidator, 
  108.             String name=ButtonNameStr) -> bool
  109.  
  110.         Acutally create the GUI Button for 2-phase creation.
  111.         '''
  112.         return _controls_.Button_Create(*args, **kwargs)
  113.  
  114.     
  115.     def SetDefault(*args, **kwargs):
  116.         '''
  117.         SetDefault(self)
  118.  
  119.         This sets the button to be the default item for the panel or dialog box.
  120.         '''
  121.         return _controls_.Button_SetDefault(*args, **kwargs)
  122.  
  123.     
  124.     def GetDefaultSize(*args, **kwargs):
  125.         '''
  126.         GetDefaultSize() -> Size
  127.  
  128.         Returns the default button size for this platform.
  129.         '''
  130.         return _controls_.Button_GetDefaultSize(*args, **kwargs)
  131.  
  132.     GetDefaultSize = staticmethod(GetDefaultSize)
  133.     
  134.     def GetClassDefaultAttributes(*args, **kwargs):
  135.         """
  136.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  137.  
  138.         Get the default attributes for this class.  This is useful if you want
  139.         to use the same font or colour in your own control as in a standard
  140.         control -- which is a much better idea than hard coding specific
  141.         colours or fonts which might look completely out of place on the
  142.         user's system, especially if it uses themes.
  143.  
  144.         The variant parameter is only relevant under Mac currently and is
  145.         ignore under other platforms. Under Mac, it will change the size of
  146.         the returned font. See `wx.Window.SetWindowVariant` for more about
  147.         this.
  148.         """
  149.         return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs)
  150.  
  151.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  152.  
  153.  
  154. class ButtonPtr(Button):
  155.     
  156.     def __init__(self, this):
  157.         self.this = this
  158.         if not hasattr(self, 'thisown'):
  159.             self.thisown = 0
  160.         
  161.         self.__class__ = Button
  162.  
  163.  
  164. _controls_.Button_swigregister(ButtonPtr)
  165. cvar = _controls_.cvar
  166. ButtonNameStr = cvar.ButtonNameStr
  167.  
  168. def PreButton(*args, **kwargs):
  169.     '''
  170.     PreButton() -> Button
  171.  
  172.     Precreate a Button for 2-phase creation.
  173.     '''
  174.     val = _controls_.new_PreButton(*args, **kwargs)
  175.     val.thisown = 1
  176.     return val
  177.  
  178.  
  179. def Button_GetDefaultSize(*args, **kwargs):
  180.     '''
  181.     Button_GetDefaultSize() -> Size
  182.  
  183.     Returns the default button size for this platform.
  184.     '''
  185.     return _controls_.Button_GetDefaultSize(*args, **kwargs)
  186.  
  187.  
  188. def Button_GetClassDefaultAttributes(*args, **kwargs):
  189.     """
  190.     Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  191.  
  192.     Get the default attributes for this class.  This is useful if you want
  193.     to use the same font or colour in your own control as in a standard
  194.     control -- which is a much better idea than hard coding specific
  195.     colours or fonts which might look completely out of place on the
  196.     user's system, especially if it uses themes.
  197.  
  198.     The variant parameter is only relevant under Mac currently and is
  199.     ignore under other platforms. Under Mac, it will change the size of
  200.     the returned font. See `wx.Window.SetWindowVariant` for more about
  201.     this.
  202.     """
  203.     return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs)
  204.  
  205.  
  206. class BitmapButton(Button):
  207.     '''
  208.     A Button that contains a bitmap.  A bitmap button can be supplied with a
  209.     single bitmap, and wxWidgets will draw all button states using this bitmap. If
  210.     the application needs more control, additional bitmaps for the selected state,
  211.     unpressed focused state, and greyed-out state may be supplied.
  212.     '''
  213.     
  214.     def __repr__(self):
  215.         return '<%s.%s; proxy of C++ wxBitmapButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  216.  
  217.     
  218.     def __init__(self, *args, **kwargs):
  219.         '''
  220.         __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, 
  221.             Point pos=DefaultPosition, Size size=DefaultSize, 
  222.             long style=BU_AUTODRAW, Validator validator=DefaultValidator, 
  223.             String name=ButtonNameStr) -> BitmapButton
  224.  
  225.         Create and show a button with a bitmap for the label.
  226.         '''
  227.         newobj = _controls_.new_BitmapButton(*args, **kwargs)
  228.         self.this = newobj.this
  229.         self.thisown = 1
  230.         del newobj.thisown
  231.         self._setOORInfo(self)
  232.  
  233.     
  234.     def Create(*args, **kwargs):
  235.         '''
  236.         Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, 
  237.             Point pos=DefaultPosition, Size size=DefaultSize, 
  238.             long style=BU_AUTODRAW, Validator validator=DefaultValidator, 
  239.             String name=ButtonNameStr) -> bool
  240.  
  241.         Acutally create the GUI BitmapButton for 2-phase creation.
  242.         '''
  243.         return _controls_.BitmapButton_Create(*args, **kwargs)
  244.  
  245.     
  246.     def GetBitmapLabel(*args, **kwargs):
  247.         '''
  248.         GetBitmapLabel(self) -> Bitmap
  249.  
  250.         Returns the label bitmap (the one passed to the constructor).
  251.         '''
  252.         return _controls_.BitmapButton_GetBitmapLabel(*args, **kwargs)
  253.  
  254.     
  255.     def GetBitmapDisabled(*args, **kwargs):
  256.         '''
  257.         GetBitmapDisabled(self) -> Bitmap
  258.  
  259.         Returns the bitmap for the disabled state.
  260.         '''
  261.         return _controls_.BitmapButton_GetBitmapDisabled(*args, **kwargs)
  262.  
  263.     
  264.     def GetBitmapFocus(*args, **kwargs):
  265.         '''
  266.         GetBitmapFocus(self) -> Bitmap
  267.  
  268.         Returns the bitmap for the focused state.
  269.         '''
  270.         return _controls_.BitmapButton_GetBitmapFocus(*args, **kwargs)
  271.  
  272.     
  273.     def GetBitmapSelected(*args, **kwargs):
  274.         '''
  275.         GetBitmapSelected(self) -> Bitmap
  276.  
  277.         Returns the bitmap for the selected state.
  278.         '''
  279.         return _controls_.BitmapButton_GetBitmapSelected(*args, **kwargs)
  280.  
  281.     
  282.     def SetBitmapDisabled(*args, **kwargs):
  283.         '''
  284.         SetBitmapDisabled(self, Bitmap bitmap)
  285.  
  286.         Sets the bitmap for the disabled button appearance.
  287.         '''
  288.         return _controls_.BitmapButton_SetBitmapDisabled(*args, **kwargs)
  289.  
  290.     
  291.     def SetBitmapFocus(*args, **kwargs):
  292.         '''
  293.         SetBitmapFocus(self, Bitmap bitmap)
  294.  
  295.         Sets the bitmap for the button appearance when it has the keyboard focus.
  296.         '''
  297.         return _controls_.BitmapButton_SetBitmapFocus(*args, **kwargs)
  298.  
  299.     
  300.     def SetBitmapSelected(*args, **kwargs):
  301.         '''
  302.         SetBitmapSelected(self, Bitmap bitmap)
  303.  
  304.         Sets the bitmap for the selected (depressed) button appearance.
  305.         '''
  306.         return _controls_.BitmapButton_SetBitmapSelected(*args, **kwargs)
  307.  
  308.     
  309.     def SetBitmapLabel(*args, **kwargs):
  310.         '''
  311.         SetBitmapLabel(self, Bitmap bitmap)
  312.  
  313.         Sets the bitmap label for the button.  This is the bitmap used for the
  314.         unselected state, and for all other states if no other bitmaps are provided.
  315.         '''
  316.         return _controls_.BitmapButton_SetBitmapLabel(*args, **kwargs)
  317.  
  318.     
  319.     def SetMargins(*args, **kwargs):
  320.         '''SetMargins(self, int x, int y)'''
  321.         return _controls_.BitmapButton_SetMargins(*args, **kwargs)
  322.  
  323.     
  324.     def GetMarginX(*args, **kwargs):
  325.         '''GetMarginX(self) -> int'''
  326.         return _controls_.BitmapButton_GetMarginX(*args, **kwargs)
  327.  
  328.     
  329.     def GetMarginY(*args, **kwargs):
  330.         '''GetMarginY(self) -> int'''
  331.         return _controls_.BitmapButton_GetMarginY(*args, **kwargs)
  332.  
  333.  
  334.  
  335. class BitmapButtonPtr(BitmapButton):
  336.     
  337.     def __init__(self, this):
  338.         self.this = this
  339.         if not hasattr(self, 'thisown'):
  340.             self.thisown = 0
  341.         
  342.         self.__class__ = BitmapButton
  343.  
  344.  
  345. _controls_.BitmapButton_swigregister(BitmapButtonPtr)
  346.  
  347. def PreBitmapButton(*args, **kwargs):
  348.     '''
  349.     PreBitmapButton() -> BitmapButton
  350.  
  351.     Precreate a BitmapButton for 2-phase creation.
  352.     '''
  353.     val = _controls_.new_PreBitmapButton(*args, **kwargs)
  354.     val.thisown = 1
  355.     return val
  356.  
  357. CHK_2STATE = _controls_.CHK_2STATE
  358. CHK_3STATE = _controls_.CHK_3STATE
  359. CHK_ALLOW_3RD_STATE_FOR_USER = _controls_.CHK_ALLOW_3RD_STATE_FOR_USER
  360. CHK_UNCHECKED = _controls_.CHK_UNCHECKED
  361. CHK_CHECKED = _controls_.CHK_CHECKED
  362. CHK_UNDETERMINED = _controls_.CHK_UNDETERMINED
  363.  
  364. class CheckBox(_core.Control):
  365.     '''
  366.     A checkbox is a labelled box which by default is either on (the
  367.     checkmark is visible) or off (no checkmark). Optionally (When the
  368.     wx.CHK_3STATE style flag is set) it can have a third state, called the
  369.     mixed or undetermined state. Often this is used as a "Does Not
  370.     Apply" state.
  371.     '''
  372.     
  373.     def __repr__(self):
  374.         return '<%s.%s; proxy of C++ wxCheckBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  375.  
  376.     
  377.     def __init__(self, *args, **kwargs):
  378.         '''
  379.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  380.             Point pos=DefaultPosition, Size size=DefaultSize, 
  381.             long style=0, Validator validator=DefaultValidator, 
  382.             String name=CheckBoxNameStr) -> CheckBox
  383.  
  384.         Creates and shows a CheckBox control
  385.         '''
  386.         newobj = _controls_.new_CheckBox(*args, **kwargs)
  387.         self.this = newobj.this
  388.         self.thisown = 1
  389.         del newobj.thisown
  390.         self._setOORInfo(self)
  391.  
  392.     
  393.     def Create(*args, **kwargs):
  394.         '''
  395.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  396.             Point pos=DefaultPosition, Size size=DefaultSize, 
  397.             long style=0, Validator validator=DefaultValidator, 
  398.             String name=CheckBoxNameStr) -> bool
  399.  
  400.         Actually create the GUI CheckBox for 2-phase creation.
  401.         '''
  402.         return _controls_.CheckBox_Create(*args, **kwargs)
  403.  
  404.     
  405.     def GetValue(*args, **kwargs):
  406.         '''
  407.         GetValue(self) -> bool
  408.  
  409.         Gets the state of a 2-state CheckBox.  Returns True if it is checked,
  410.         False otherwise.
  411.         '''
  412.         return _controls_.CheckBox_GetValue(*args, **kwargs)
  413.  
  414.     
  415.     def IsChecked(*args, **kwargs):
  416.         '''
  417.         IsChecked(self) -> bool
  418.  
  419.         Similar to GetValue, but raises an exception if it is not a 2-state
  420.         CheckBox.
  421.         '''
  422.         return _controls_.CheckBox_IsChecked(*args, **kwargs)
  423.  
  424.     
  425.     def SetValue(*args, **kwargs):
  426.         '''
  427.         SetValue(self, bool state)
  428.  
  429.         Set the state of a 2-state CheckBox.  Pass True for checked, False for
  430.         unchecked.
  431.         '''
  432.         return _controls_.CheckBox_SetValue(*args, **kwargs)
  433.  
  434.     
  435.     def Get3StateValue(*args, **kwargs):
  436.         """
  437.         Get3StateValue(self) -> int
  438.  
  439.         Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
  440.         wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
  441.         the undetermined state.  Raises an exceptiion when the function is
  442.         used with a 2-state CheckBox.
  443.         """
  444.         return _controls_.CheckBox_Get3StateValue(*args, **kwargs)
  445.  
  446.     
  447.     def Set3StateValue(*args, **kwargs):
  448.         '''
  449.         Set3StateValue(self, int state)
  450.  
  451.         Sets the CheckBox to the given state.  The state parameter can be one
  452.         of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
  453.         Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
  454.         exception when the CheckBox is a 2-state checkbox and setting the
  455.         state to wx.CHK_UNDETERMINED.
  456.         '''
  457.         return _controls_.CheckBox_Set3StateValue(*args, **kwargs)
  458.  
  459.     
  460.     def Is3State(*args, **kwargs):
  461.         '''
  462.         Is3State(self) -> bool
  463.  
  464.         Returns whether or not the CheckBox is a 3-state CheckBox.
  465.         '''
  466.         return _controls_.CheckBox_Is3State(*args, **kwargs)
  467.  
  468.     
  469.     def Is3rdStateAllowedForUser(*args, **kwargs):
  470.         '''
  471.         Is3rdStateAllowedForUser(self) -> bool
  472.  
  473.         Returns whether or not the user can set the CheckBox to the third
  474.         state.
  475.         '''
  476.         return _controls_.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs)
  477.  
  478.     
  479.     def GetClassDefaultAttributes(*args, **kwargs):
  480.         """
  481.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  482.  
  483.         Get the default attributes for this class.  This is useful if you want
  484.         to use the same font or colour in your own control as in a standard
  485.         control -- which is a much better idea than hard coding specific
  486.         colours or fonts which might look completely out of place on the
  487.         user's system, especially if it uses themes.
  488.  
  489.         The variant parameter is only relevant under Mac currently and is
  490.         ignore under other platforms. Under Mac, it will change the size of
  491.         the returned font. See `wx.Window.SetWindowVariant` for more about
  492.         this.
  493.         """
  494.         return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs)
  495.  
  496.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  497.  
  498.  
  499. class CheckBoxPtr(CheckBox):
  500.     
  501.     def __init__(self, this):
  502.         self.this = this
  503.         if not hasattr(self, 'thisown'):
  504.             self.thisown = 0
  505.         
  506.         self.__class__ = CheckBox
  507.  
  508.  
  509. _controls_.CheckBox_swigregister(CheckBoxPtr)
  510. CheckBoxNameStr = cvar.CheckBoxNameStr
  511.  
  512. def PreCheckBox(*args, **kwargs):
  513.     '''
  514.     PreCheckBox() -> CheckBox
  515.  
  516.     Precreate a CheckBox for 2-phase creation.
  517.     '''
  518.     val = _controls_.new_PreCheckBox(*args, **kwargs)
  519.     val.thisown = 1
  520.     return val
  521.  
  522.  
  523. def CheckBox_GetClassDefaultAttributes(*args, **kwargs):
  524.     """
  525.     CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  526.  
  527.     Get the default attributes for this class.  This is useful if you want
  528.     to use the same font or colour in your own control as in a standard
  529.     control -- which is a much better idea than hard coding specific
  530.     colours or fonts which might look completely out of place on the
  531.     user's system, especially if it uses themes.
  532.  
  533.     The variant parameter is only relevant under Mac currently and is
  534.     ignore under other platforms. Under Mac, it will change the size of
  535.     the returned font. See `wx.Window.SetWindowVariant` for more about
  536.     this.
  537.     """
  538.     return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs)
  539.  
  540.  
  541. class Choice(_core.ControlWithItems):
  542.     '''
  543.     A Choice control is used to select one of a list of strings.
  544.     Unlike a `wx.ListBox`, only the selection is visible until the
  545.     user pulls down the menu of choices.
  546.     '''
  547.     
  548.     def __repr__(self):
  549.         return '<%s.%s; proxy of C++ wxChoice instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  550.  
  551.     
  552.     def __init__(self, *args, **kwargs):
  553.         '''
  554.         __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
  555.             List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
  556.             String name=ChoiceNameStr) -> Choice
  557.  
  558.         Create and show a Choice control
  559.         '''
  560.         newobj = _controls_.new_Choice(*args, **kwargs)
  561.         self.this = newobj.this
  562.         self.thisown = 1
  563.         del newobj.thisown
  564.         self._setOORInfo(self)
  565.  
  566.     
  567.     def Create(*args, **kwargs):
  568.         '''
  569.         Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
  570.             List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
  571.             String name=ChoiceNameStr) -> bool
  572.  
  573.         Actually create the GUI Choice control for 2-phase creation
  574.         '''
  575.         return _controls_.Choice_Create(*args, **kwargs)
  576.  
  577.     
  578.     def GetCurrentSelection(*args, **kwargs):
  579.         '''
  580.         GetCurrentSelection(self) -> int
  581.  
  582.         Unlike `GetSelection` which only returns the accepted selection value,
  583.         i.e. the selection in the control once the user closes the dropdown
  584.         list, this function returns the current selection.  That is, while the
  585.         dropdown list is shown, it returns the currently selected item in
  586.         it. When it is not shown, its result is the same as for the other
  587.         function.
  588.         '''
  589.         return _controls_.Choice_GetCurrentSelection(*args, **kwargs)
  590.  
  591.     
  592.     def GetClassDefaultAttributes(*args, **kwargs):
  593.         """
  594.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  595.  
  596.         Get the default attributes for this class.  This is useful if you want
  597.         to use the same font or colour in your own control as in a standard
  598.         control -- which is a much better idea than hard coding specific
  599.         colours or fonts which might look completely out of place on the
  600.         user's system, especially if it uses themes.
  601.  
  602.         The variant parameter is only relevant under Mac currently and is
  603.         ignore under other platforms. Under Mac, it will change the size of
  604.         the returned font. See `wx.Window.SetWindowVariant` for more about
  605.         this.
  606.         """
  607.         return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs)
  608.  
  609.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  610.  
  611.  
  612. class ChoicePtr(Choice):
  613.     
  614.     def __init__(self, this):
  615.         self.this = this
  616.         if not hasattr(self, 'thisown'):
  617.             self.thisown = 0
  618.         
  619.         self.__class__ = Choice
  620.  
  621.  
  622. _controls_.Choice_swigregister(ChoicePtr)
  623. ChoiceNameStr = cvar.ChoiceNameStr
  624.  
  625. def PreChoice(*args, **kwargs):
  626.     '''
  627.     PreChoice() -> Choice
  628.  
  629.     Precreate a Choice control for 2-phase creation.
  630.     '''
  631.     val = _controls_.new_PreChoice(*args, **kwargs)
  632.     val.thisown = 1
  633.     return val
  634.  
  635.  
  636. def Choice_GetClassDefaultAttributes(*args, **kwargs):
  637.     """
  638.     Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  639.  
  640.     Get the default attributes for this class.  This is useful if you want
  641.     to use the same font or colour in your own control as in a standard
  642.     control -- which is a much better idea than hard coding specific
  643.     colours or fonts which might look completely out of place on the
  644.     user's system, especially if it uses themes.
  645.  
  646.     The variant parameter is only relevant under Mac currently and is
  647.     ignore under other platforms. Under Mac, it will change the size of
  648.     the returned font. See `wx.Window.SetWindowVariant` for more about
  649.     this.
  650.     """
  651.     return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs)
  652.  
  653.  
  654. class ComboBox(Choice):
  655.     '''
  656.     A combobox is like a combination of an edit control and a
  657.     listbox. It can be displayed as static list with editable or
  658.     read-only text field; or a drop-down list with text field.
  659.  
  660.     A combobox permits a single selection only. Combobox items are
  661.     numbered from zero.
  662.     '''
  663.     
  664.     def __repr__(self):
  665.         return '<%s.%s; proxy of C++ wxComboBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  666.  
  667.     
  668.     def __init__(self, *args, **kwargs):
  669.         '''
  670.         __init__(Window parent, int id, String value=EmptyString,
  671.             Point pos=DefaultPosition, Size size=DefaultSize,
  672.             List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
  673.             String name=ComboBoxNameStr) -> ComboBox
  674.  
  675.         Constructor, creates and shows a ComboBox control.
  676.         '''
  677.         newobj = _controls_.new_ComboBox(*args, **kwargs)
  678.         self.this = newobj.this
  679.         self.thisown = 1
  680.         del newobj.thisown
  681.         self._setOORInfo(self)
  682.  
  683.     
  684.     def Create(*args, **kwargs):
  685.         '''
  686.         Create(Window parent, int id, String value=EmptyString,
  687.             Point pos=DefaultPosition, Size size=DefaultSize,
  688.             List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
  689.             String name=ChoiceNameStr) -> bool
  690.  
  691.         Actually create the GUI wxComboBox control for 2-phase creation
  692.         '''
  693.         return _controls_.ComboBox_Create(*args, **kwargs)
  694.  
  695.     
  696.     def GetValue(*args, **kwargs):
  697.         '''
  698.         GetValue(self) -> String
  699.  
  700.         Returns the current value in the combobox text field.
  701.         '''
  702.         return _controls_.ComboBox_GetValue(*args, **kwargs)
  703.  
  704.     
  705.     def SetValue(*args, **kwargs):
  706.         '''SetValue(self, String value)'''
  707.         return _controls_.ComboBox_SetValue(*args, **kwargs)
  708.  
  709.     
  710.     def Copy(*args, **kwargs):
  711.         '''
  712.         Copy(self)
  713.  
  714.         Copies the selected text to the clipboard.
  715.         '''
  716.         return _controls_.ComboBox_Copy(*args, **kwargs)
  717.  
  718.     
  719.     def Cut(*args, **kwargs):
  720.         '''
  721.         Cut(self)
  722.  
  723.         Copies the selected text to the clipboard and removes the selection.
  724.         '''
  725.         return _controls_.ComboBox_Cut(*args, **kwargs)
  726.  
  727.     
  728.     def Paste(*args, **kwargs):
  729.         '''
  730.         Paste(self)
  731.  
  732.         Pastes text from the clipboard to the text field.
  733.         '''
  734.         return _controls_.ComboBox_Paste(*args, **kwargs)
  735.  
  736.     
  737.     def SetInsertionPoint(*args, **kwargs):
  738.         '''
  739.         SetInsertionPoint(self, long pos)
  740.  
  741.         Sets the insertion point in the combobox text field.
  742.         '''
  743.         return _controls_.ComboBox_SetInsertionPoint(*args, **kwargs)
  744.  
  745.     
  746.     def GetInsertionPoint(*args, **kwargs):
  747.         """
  748.         GetInsertionPoint(self) -> long
  749.  
  750.         Returns the insertion point for the combobox's text field.
  751.         """
  752.         return _controls_.ComboBox_GetInsertionPoint(*args, **kwargs)
  753.  
  754.     
  755.     def GetLastPosition(*args, **kwargs):
  756.         '''
  757.         GetLastPosition(self) -> long
  758.  
  759.         Returns the last position in the combobox text field.
  760.         '''
  761.         return _controls_.ComboBox_GetLastPosition(*args, **kwargs)
  762.  
  763.     
  764.     def Replace(*args, **kwargs):
  765.         '''
  766.         Replace(self, long from, long to, String value)
  767.  
  768.         Replaces the text between two positions with the given text, in the
  769.         combobox text field.
  770.         '''
  771.         return _controls_.ComboBox_Replace(*args, **kwargs)
  772.  
  773.     
  774.     def SetSelection(*args, **kwargs):
  775.         """
  776.         SetSelection(self, int n)
  777.  
  778.         Sets the item at index 'n' to be the selected item.
  779.         """
  780.         return _controls_.ComboBox_SetSelection(*args, **kwargs)
  781.  
  782.     
  783.     def SetMark(*args, **kwargs):
  784.         '''
  785.         SetMark(self, long from, long to)
  786.  
  787.         Selects the text between the two positions in the combobox text field.
  788.         '''
  789.         return _controls_.ComboBox_SetMark(*args, **kwargs)
  790.  
  791.     
  792.     def GetMark(*args, **kwargs):
  793.         '''
  794.         GetMark(self) -> (from, to)
  795.  
  796.         Gets the positions of the begining and ending of the selection mark in
  797.         the combobox text field.
  798.         '''
  799.         return _controls_.ComboBox_GetMark(*args, **kwargs)
  800.  
  801.     
  802.     def GetCurrentSelection(*args, **kwargs):
  803.         '''
  804.         GetCurrentSelection(self) -> int
  805.  
  806.         Unlike `GetSelection` which only returns the accepted selection value,
  807.         i.e. the selection in the control once the user closes the dropdown
  808.         list, this function returns the current selection.  That is, while the
  809.         dropdown list is shown, it returns the currently selected item in
  810.         it. When it is not shown, its result is the same as for the other
  811.         function.
  812.         '''
  813.         return _controls_.ComboBox_GetCurrentSelection(*args, **kwargs)
  814.  
  815.     
  816.     def SetStringSelection(*args, **kwargs):
  817.         '''
  818.         SetStringSelection(self, String string) -> bool
  819.  
  820.         Select the item with the specifed string
  821.         '''
  822.         return _controls_.ComboBox_SetStringSelection(*args, **kwargs)
  823.  
  824.     
  825.     def SetString(*args, **kwargs):
  826.         """
  827.         SetString(self, int n, String string)
  828.  
  829.         Set the label for the n'th item (zero based) in the list.
  830.         """
  831.         return _controls_.ComboBox_SetString(*args, **kwargs)
  832.  
  833.     
  834.     def SetEditable(*args, **kwargs):
  835.         '''SetEditable(self, bool editable)'''
  836.         return _controls_.ComboBox_SetEditable(*args, **kwargs)
  837.  
  838.     
  839.     def SetInsertionPointEnd(*args, **kwargs):
  840.         '''
  841.         SetInsertionPointEnd(self)
  842.  
  843.         Sets the insertion point at the end of the combobox text field.
  844.         '''
  845.         return _controls_.ComboBox_SetInsertionPointEnd(*args, **kwargs)
  846.  
  847.     
  848.     def Remove(*args, **kwargs):
  849.         '''
  850.         Remove(self, long from, long to)
  851.  
  852.         Removes the text between the two positions in the combobox text field.
  853.         '''
  854.         return _controls_.ComboBox_Remove(*args, **kwargs)
  855.  
  856.     
  857.     def IsEditable(*args, **kwargs):
  858.         '''
  859.         IsEditable(self) -> bool
  860.  
  861.         Returns True if the combo is ediatable (not read-only.)
  862.         '''
  863.         return _controls_.ComboBox_IsEditable(*args, **kwargs)
  864.  
  865.     
  866.     def Undo(*args, **kwargs):
  867.         '''
  868.         Undo(self)
  869.  
  870.         Redoes the last undo in the text field. Windows only.
  871.         '''
  872.         return _controls_.ComboBox_Undo(*args, **kwargs)
  873.  
  874.     
  875.     def Redo(*args, **kwargs):
  876.         '''
  877.         Redo(self)
  878.  
  879.         Undoes the last edit in the text field. Windows only.
  880.         '''
  881.         return _controls_.ComboBox_Redo(*args, **kwargs)
  882.  
  883.     
  884.     def SelectAll(*args, **kwargs):
  885.         """
  886.         SelectAll(self)
  887.  
  888.         Select all the text in the combo's text field.
  889.         """
  890.         return _controls_.ComboBox_SelectAll(*args, **kwargs)
  891.  
  892.     
  893.     def CanCopy(*args, **kwargs):
  894.         '''
  895.         CanCopy(self) -> bool
  896.  
  897.         Returns True if the combobox is editable and there is a text selection
  898.         to copy to the clipboard.  Only available on Windows.
  899.         '''
  900.         return _controls_.ComboBox_CanCopy(*args, **kwargs)
  901.  
  902.     
  903.     def CanCut(*args, **kwargs):
  904.         '''
  905.         CanCut(self) -> bool
  906.  
  907.         Returns True if the combobox is editable and there is a text selection
  908.         to copy to the clipboard.  Only available on Windows.
  909.         '''
  910.         return _controls_.ComboBox_CanCut(*args, **kwargs)
  911.  
  912.     
  913.     def CanPaste(*args, **kwargs):
  914.         '''
  915.         CanPaste(self) -> bool
  916.  
  917.         Returns True if the combobox is editable and there is text on the
  918.         clipboard that can be pasted into the text field. Only available on
  919.         Windows.
  920.         '''
  921.         return _controls_.ComboBox_CanPaste(*args, **kwargs)
  922.  
  923.     
  924.     def CanUndo(*args, **kwargs):
  925.         '''
  926.         CanUndo(self) -> bool
  927.  
  928.         Returns True if the combobox is editable and the last edit can be
  929.         undone.  Only available on Windows.
  930.         '''
  931.         return _controls_.ComboBox_CanUndo(*args, **kwargs)
  932.  
  933.     
  934.     def CanRedo(*args, **kwargs):
  935.         '''
  936.         CanRedo(self) -> bool
  937.  
  938.         Returns True if the combobox is editable and the last undo can be
  939.         redone.  Only available on Windows.
  940.         '''
  941.         return _controls_.ComboBox_CanRedo(*args, **kwargs)
  942.  
  943.     
  944.     def GetClassDefaultAttributes(*args, **kwargs):
  945.         """
  946.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  947.  
  948.         Get the default attributes for this class.  This is useful if you want
  949.         to use the same font or colour in your own control as in a standard
  950.         control -- which is a much better idea than hard coding specific
  951.         colours or fonts which might look completely out of place on the
  952.         user's system, especially if it uses themes.
  953.  
  954.         The variant parameter is only relevant under Mac currently and is
  955.         ignore under other platforms. Under Mac, it will change the size of
  956.         the returned font. See `wx.Window.SetWindowVariant` for more about
  957.         this.
  958.         """
  959.         return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs)
  960.  
  961.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  962.  
  963.  
  964. class ComboBoxPtr(ComboBox):
  965.     
  966.     def __init__(self, this):
  967.         self.this = this
  968.         if not hasattr(self, 'thisown'):
  969.             self.thisown = 0
  970.         
  971.         self.__class__ = ComboBox
  972.  
  973.  
  974. _controls_.ComboBox_swigregister(ComboBoxPtr)
  975. ComboBoxNameStr = cvar.ComboBoxNameStr
  976.  
  977. def PreComboBox(*args, **kwargs):
  978.     '''
  979.     PreComboBox() -> ComboBox
  980.  
  981.     Precreate a ComboBox control for 2-phase creation.
  982.     '''
  983.     val = _controls_.new_PreComboBox(*args, **kwargs)
  984.     val.thisown = 1
  985.     return val
  986.  
  987.  
  988. def ComboBox_GetClassDefaultAttributes(*args, **kwargs):
  989.     """
  990.     ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  991.  
  992.     Get the default attributes for this class.  This is useful if you want
  993.     to use the same font or colour in your own control as in a standard
  994.     control -- which is a much better idea than hard coding specific
  995.     colours or fonts which might look completely out of place on the
  996.     user's system, especially if it uses themes.
  997.  
  998.     The variant parameter is only relevant under Mac currently and is
  999.     ignore under other platforms. Under Mac, it will change the size of
  1000.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1001.     this.
  1002.     """
  1003.     return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs)
  1004.  
  1005. GA_HORIZONTAL = _controls_.GA_HORIZONTAL
  1006. GA_VERTICAL = _controls_.GA_VERTICAL
  1007. GA_SMOOTH = _controls_.GA_SMOOTH
  1008. GA_PROGRESSBAR = _controls_.GA_PROGRESSBAR
  1009.  
  1010. class Gauge(_core.Control):
  1011.     '''Proxy of C++ Gauge class'''
  1012.     
  1013.     def __repr__(self):
  1014.         return '<%s.%s; proxy of C++ wxGauge instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1015.  
  1016.     
  1017.     def __init__(self, *args, **kwargs):
  1018.         '''
  1019.         __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, 
  1020.             Size size=DefaultSize, long style=GA_HORIZONTAL, 
  1021.             Validator validator=DefaultValidator, 
  1022.             String name=GaugeNameStr) -> Gauge
  1023.         '''
  1024.         newobj = _controls_.new_Gauge(*args, **kwargs)
  1025.         self.this = newobj.this
  1026.         self.thisown = 1
  1027.         del newobj.thisown
  1028.         self._setOORInfo(self)
  1029.  
  1030.     
  1031.     def Create(*args, **kwargs):
  1032.         '''
  1033.         Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, 
  1034.             Size size=DefaultSize, long style=GA_HORIZONTAL, 
  1035.             Validator validator=DefaultValidator, 
  1036.             String name=GaugeNameStr) -> bool
  1037.         '''
  1038.         return _controls_.Gauge_Create(*args, **kwargs)
  1039.  
  1040.     
  1041.     def SetRange(*args, **kwargs):
  1042.         '''SetRange(self, int range)'''
  1043.         return _controls_.Gauge_SetRange(*args, **kwargs)
  1044.  
  1045.     
  1046.     def GetRange(*args, **kwargs):
  1047.         '''GetRange(self) -> int'''
  1048.         return _controls_.Gauge_GetRange(*args, **kwargs)
  1049.  
  1050.     
  1051.     def SetValue(*args, **kwargs):
  1052.         '''SetValue(self, int pos)'''
  1053.         return _controls_.Gauge_SetValue(*args, **kwargs)
  1054.  
  1055.     
  1056.     def GetValue(*args, **kwargs):
  1057.         '''GetValue(self) -> int'''
  1058.         return _controls_.Gauge_GetValue(*args, **kwargs)
  1059.  
  1060.     
  1061.     def IsVertical(*args, **kwargs):
  1062.         '''IsVertical(self) -> bool'''
  1063.         return _controls_.Gauge_IsVertical(*args, **kwargs)
  1064.  
  1065.     
  1066.     def SetShadowWidth(*args, **kwargs):
  1067.         '''SetShadowWidth(self, int w)'''
  1068.         return _controls_.Gauge_SetShadowWidth(*args, **kwargs)
  1069.  
  1070.     
  1071.     def GetShadowWidth(*args, **kwargs):
  1072.         '''GetShadowWidth(self) -> int'''
  1073.         return _controls_.Gauge_GetShadowWidth(*args, **kwargs)
  1074.  
  1075.     
  1076.     def SetBezelFace(*args, **kwargs):
  1077.         '''SetBezelFace(self, int w)'''
  1078.         return _controls_.Gauge_SetBezelFace(*args, **kwargs)
  1079.  
  1080.     
  1081.     def GetBezelFace(*args, **kwargs):
  1082.         '''GetBezelFace(self) -> int'''
  1083.         return _controls_.Gauge_GetBezelFace(*args, **kwargs)
  1084.  
  1085.     
  1086.     def GetClassDefaultAttributes(*args, **kwargs):
  1087.         """
  1088.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1089.  
  1090.         Get the default attributes for this class.  This is useful if you want
  1091.         to use the same font or colour in your own control as in a standard
  1092.         control -- which is a much better idea than hard coding specific
  1093.         colours or fonts which might look completely out of place on the
  1094.         user's system, especially if it uses themes.
  1095.  
  1096.         The variant parameter is only relevant under Mac currently and is
  1097.         ignore under other platforms. Under Mac, it will change the size of
  1098.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1099.         this.
  1100.         """
  1101.         return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs)
  1102.  
  1103.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1104.  
  1105.  
  1106. class GaugePtr(Gauge):
  1107.     
  1108.     def __init__(self, this):
  1109.         self.this = this
  1110.         if not hasattr(self, 'thisown'):
  1111.             self.thisown = 0
  1112.         
  1113.         self.__class__ = Gauge
  1114.  
  1115.  
  1116. _controls_.Gauge_swigregister(GaugePtr)
  1117. GaugeNameStr = cvar.GaugeNameStr
  1118.  
  1119. def PreGauge(*args, **kwargs):
  1120.     '''PreGauge() -> Gauge'''
  1121.     val = _controls_.new_PreGauge(*args, **kwargs)
  1122.     val.thisown = 1
  1123.     return val
  1124.  
  1125.  
  1126. def Gauge_GetClassDefaultAttributes(*args, **kwargs):
  1127.     """
  1128.     Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1129.  
  1130.     Get the default attributes for this class.  This is useful if you want
  1131.     to use the same font or colour in your own control as in a standard
  1132.     control -- which is a much better idea than hard coding specific
  1133.     colours or fonts which might look completely out of place on the
  1134.     user's system, especially if it uses themes.
  1135.  
  1136.     The variant parameter is only relevant under Mac currently and is
  1137.     ignore under other platforms. Under Mac, it will change the size of
  1138.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1139.     this.
  1140.     """
  1141.     return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs)
  1142.  
  1143.  
  1144. class StaticBox(_core.Control):
  1145.     '''Proxy of C++ StaticBox class'''
  1146.     
  1147.     def __repr__(self):
  1148.         return '<%s.%s; proxy of C++ wxStaticBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1149.  
  1150.     
  1151.     def __init__(self, *args, **kwargs):
  1152.         '''
  1153.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  1154.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1155.             long style=0, String name=StaticBoxNameStr) -> StaticBox
  1156.         '''
  1157.         newobj = _controls_.new_StaticBox(*args, **kwargs)
  1158.         self.this = newobj.this
  1159.         self.thisown = 1
  1160.         del newobj.thisown
  1161.         self._setOORInfo(self)
  1162.  
  1163.     
  1164.     def Create(*args, **kwargs):
  1165.         '''
  1166.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  1167.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1168.             long style=0, String name=StaticBoxNameStr) -> bool
  1169.         '''
  1170.         return _controls_.StaticBox_Create(*args, **kwargs)
  1171.  
  1172.     
  1173.     def GetClassDefaultAttributes(*args, **kwargs):
  1174.         """
  1175.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1176.  
  1177.         Get the default attributes for this class.  This is useful if you want
  1178.         to use the same font or colour in your own control as in a standard
  1179.         control -- which is a much better idea than hard coding specific
  1180.         colours or fonts which might look completely out of place on the
  1181.         user's system, especially if it uses themes.
  1182.  
  1183.         The variant parameter is only relevant under Mac currently and is
  1184.         ignore under other platforms. Under Mac, it will change the size of
  1185.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1186.         this.
  1187.         """
  1188.         return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs)
  1189.  
  1190.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1191.  
  1192.  
  1193. class StaticBoxPtr(StaticBox):
  1194.     
  1195.     def __init__(self, this):
  1196.         self.this = this
  1197.         if not hasattr(self, 'thisown'):
  1198.             self.thisown = 0
  1199.         
  1200.         self.__class__ = StaticBox
  1201.  
  1202.  
  1203. _controls_.StaticBox_swigregister(StaticBoxPtr)
  1204. StaticBitmapNameStr = cvar.StaticBitmapNameStr
  1205. StaticBoxNameStr = cvar.StaticBoxNameStr
  1206. StaticTextNameStr = cvar.StaticTextNameStr
  1207.  
  1208. def PreStaticBox(*args, **kwargs):
  1209.     '''PreStaticBox() -> StaticBox'''
  1210.     val = _controls_.new_PreStaticBox(*args, **kwargs)
  1211.     val.thisown = 1
  1212.     return val
  1213.  
  1214.  
  1215. def StaticBox_GetClassDefaultAttributes(*args, **kwargs):
  1216.     """
  1217.     StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1218.  
  1219.     Get the default attributes for this class.  This is useful if you want
  1220.     to use the same font or colour in your own control as in a standard
  1221.     control -- which is a much better idea than hard coding specific
  1222.     colours or fonts which might look completely out of place on the
  1223.     user's system, especially if it uses themes.
  1224.  
  1225.     The variant parameter is only relevant under Mac currently and is
  1226.     ignore under other platforms. Under Mac, it will change the size of
  1227.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1228.     this.
  1229.     """
  1230.     return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs)
  1231.  
  1232.  
  1233. class StaticLine(_core.Control):
  1234.     '''Proxy of C++ StaticLine class'''
  1235.     
  1236.     def __repr__(self):
  1237.         return '<%s.%s; proxy of C++ wxStaticLine instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1238.  
  1239.     
  1240.     def __init__(self, *args, **kwargs):
  1241.         '''
  1242.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1243.             Size size=DefaultSize, long style=LI_HORIZONTAL, 
  1244.             String name=StaticTextNameStr) -> StaticLine
  1245.         '''
  1246.         newobj = _controls_.new_StaticLine(*args, **kwargs)
  1247.         self.this = newobj.this
  1248.         self.thisown = 1
  1249.         del newobj.thisown
  1250.         self._setOORInfo(self)
  1251.  
  1252.     
  1253.     def Create(*args, **kwargs):
  1254.         '''
  1255.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1256.             Size size=DefaultSize, long style=LI_HORIZONTAL, 
  1257.             String name=StaticTextNameStr) -> bool
  1258.         '''
  1259.         return _controls_.StaticLine_Create(*args, **kwargs)
  1260.  
  1261.     
  1262.     def IsVertical(*args, **kwargs):
  1263.         '''IsVertical(self) -> bool'''
  1264.         return _controls_.StaticLine_IsVertical(*args, **kwargs)
  1265.  
  1266.     
  1267.     def GetDefaultSize(*args, **kwargs):
  1268.         '''GetDefaultSize() -> int'''
  1269.         return _controls_.StaticLine_GetDefaultSize(*args, **kwargs)
  1270.  
  1271.     GetDefaultSize = staticmethod(GetDefaultSize)
  1272.     
  1273.     def GetClassDefaultAttributes(*args, **kwargs):
  1274.         """
  1275.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1276.  
  1277.         Get the default attributes for this class.  This is useful if you want
  1278.         to use the same font or colour in your own control as in a standard
  1279.         control -- which is a much better idea than hard coding specific
  1280.         colours or fonts which might look completely out of place on the
  1281.         user's system, especially if it uses themes.
  1282.  
  1283.         The variant parameter is only relevant under Mac currently and is
  1284.         ignore under other platforms. Under Mac, it will change the size of
  1285.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1286.         this.
  1287.         """
  1288.         return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs)
  1289.  
  1290.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1291.  
  1292.  
  1293. class StaticLinePtr(StaticLine):
  1294.     
  1295.     def __init__(self, this):
  1296.         self.this = this
  1297.         if not hasattr(self, 'thisown'):
  1298.             self.thisown = 0
  1299.         
  1300.         self.__class__ = StaticLine
  1301.  
  1302.  
  1303. _controls_.StaticLine_swigregister(StaticLinePtr)
  1304.  
  1305. def PreStaticLine(*args, **kwargs):
  1306.     '''PreStaticLine() -> StaticLine'''
  1307.     val = _controls_.new_PreStaticLine(*args, **kwargs)
  1308.     val.thisown = 1
  1309.     return val
  1310.  
  1311.  
  1312. def StaticLine_GetDefaultSize(*args, **kwargs):
  1313.     '''StaticLine_GetDefaultSize() -> int'''
  1314.     return _controls_.StaticLine_GetDefaultSize(*args, **kwargs)
  1315.  
  1316.  
  1317. def StaticLine_GetClassDefaultAttributes(*args, **kwargs):
  1318.     """
  1319.     StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1320.  
  1321.     Get the default attributes for this class.  This is useful if you want
  1322.     to use the same font or colour in your own control as in a standard
  1323.     control -- which is a much better idea than hard coding specific
  1324.     colours or fonts which might look completely out of place on the
  1325.     user's system, especially if it uses themes.
  1326.  
  1327.     The variant parameter is only relevant under Mac currently and is
  1328.     ignore under other platforms. Under Mac, it will change the size of
  1329.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1330.     this.
  1331.     """
  1332.     return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs)
  1333.  
  1334.  
  1335. class StaticText(_core.Control):
  1336.     '''Proxy of C++ StaticText class'''
  1337.     
  1338.     def __repr__(self):
  1339.         return '<%s.%s; proxy of C++ wxStaticText instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1340.  
  1341.     
  1342.     def __init__(self, *args, **kwargs):
  1343.         '''
  1344.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  1345.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1346.             long style=0, String name=StaticTextNameStr) -> StaticText
  1347.         '''
  1348.         newobj = _controls_.new_StaticText(*args, **kwargs)
  1349.         self.this = newobj.this
  1350.         self.thisown = 1
  1351.         del newobj.thisown
  1352.         self._setOORInfo(self)
  1353.  
  1354.     
  1355.     def Create(*args, **kwargs):
  1356.         '''
  1357.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  1358.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1359.             long style=0, String name=StaticTextNameStr) -> bool
  1360.         '''
  1361.         return _controls_.StaticText_Create(*args, **kwargs)
  1362.  
  1363.     
  1364.     def Wrap(*args, **kwargs):
  1365.         """
  1366.         Wrap(self, int width)
  1367.  
  1368.         This functions wraps the control's label so that each of its lines
  1369.         becomes at most ``width`` pixels wide if possible (the lines are
  1370.         broken at words boundaries so it might not be the case if words are
  1371.         too long). If ``width`` is negative, no wrapping is done.
  1372.         """
  1373.         return _controls_.StaticText_Wrap(*args, **kwargs)
  1374.  
  1375.     
  1376.     def GetClassDefaultAttributes(*args, **kwargs):
  1377.         """
  1378.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1379.  
  1380.         Get the default attributes for this class.  This is useful if you want
  1381.         to use the same font or colour in your own control as in a standard
  1382.         control -- which is a much better idea than hard coding specific
  1383.         colours or fonts which might look completely out of place on the
  1384.         user's system, especially if it uses themes.
  1385.  
  1386.         The variant parameter is only relevant under Mac currently and is
  1387.         ignore under other platforms. Under Mac, it will change the size of
  1388.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1389.         this.
  1390.         """
  1391.         return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs)
  1392.  
  1393.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1394.  
  1395.  
  1396. class StaticTextPtr(StaticText):
  1397.     
  1398.     def __init__(self, this):
  1399.         self.this = this
  1400.         if not hasattr(self, 'thisown'):
  1401.             self.thisown = 0
  1402.         
  1403.         self.__class__ = StaticText
  1404.  
  1405.  
  1406. _controls_.StaticText_swigregister(StaticTextPtr)
  1407.  
  1408. def PreStaticText(*args, **kwargs):
  1409.     '''PreStaticText() -> StaticText'''
  1410.     val = _controls_.new_PreStaticText(*args, **kwargs)
  1411.     val.thisown = 1
  1412.     return val
  1413.  
  1414.  
  1415. def StaticText_GetClassDefaultAttributes(*args, **kwargs):
  1416.     """
  1417.     StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1418.  
  1419.     Get the default attributes for this class.  This is useful if you want
  1420.     to use the same font or colour in your own control as in a standard
  1421.     control -- which is a much better idea than hard coding specific
  1422.     colours or fonts which might look completely out of place on the
  1423.     user's system, especially if it uses themes.
  1424.  
  1425.     The variant parameter is only relevant under Mac currently and is
  1426.     ignore under other platforms. Under Mac, it will change the size of
  1427.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1428.     this.
  1429.     """
  1430.     return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs)
  1431.  
  1432.  
  1433. class StaticBitmap(_core.Control):
  1434.     '''Proxy of C++ StaticBitmap class'''
  1435.     
  1436.     def __repr__(self):
  1437.         return '<%s.%s; proxy of C++ wxStaticBitmap instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1438.  
  1439.     
  1440.     def __init__(self, *args, **kwargs):
  1441.         '''
  1442.         __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, 
  1443.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1444.             long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
  1445.         '''
  1446.         newobj = _controls_.new_StaticBitmap(*args, **kwargs)
  1447.         self.this = newobj.this
  1448.         self.thisown = 1
  1449.         del newobj.thisown
  1450.         self._setOORInfo(self)
  1451.  
  1452.     
  1453.     def Create(*args, **kwargs):
  1454.         '''
  1455.         Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, 
  1456.             Point pos=DefaultPosition, Size size=DefaultSize, 
  1457.             long style=0, String name=StaticBitmapNameStr) -> bool
  1458.         '''
  1459.         return _controls_.StaticBitmap_Create(*args, **kwargs)
  1460.  
  1461.     
  1462.     def GetBitmap(*args, **kwargs):
  1463.         '''GetBitmap(self) -> Bitmap'''
  1464.         return _controls_.StaticBitmap_GetBitmap(*args, **kwargs)
  1465.  
  1466.     
  1467.     def SetBitmap(*args, **kwargs):
  1468.         '''SetBitmap(self, Bitmap bitmap)'''
  1469.         return _controls_.StaticBitmap_SetBitmap(*args, **kwargs)
  1470.  
  1471.     
  1472.     def SetIcon(*args, **kwargs):
  1473.         '''SetIcon(self, Icon icon)'''
  1474.         return _controls_.StaticBitmap_SetIcon(*args, **kwargs)
  1475.  
  1476.     
  1477.     def GetClassDefaultAttributes(*args, **kwargs):
  1478.         """
  1479.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1480.  
  1481.         Get the default attributes for this class.  This is useful if you want
  1482.         to use the same font or colour in your own control as in a standard
  1483.         control -- which is a much better idea than hard coding specific
  1484.         colours or fonts which might look completely out of place on the
  1485.         user's system, especially if it uses themes.
  1486.  
  1487.         The variant parameter is only relevant under Mac currently and is
  1488.         ignore under other platforms. Under Mac, it will change the size of
  1489.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1490.         this.
  1491.         """
  1492.         return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs)
  1493.  
  1494.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1495.  
  1496.  
  1497. class StaticBitmapPtr(StaticBitmap):
  1498.     
  1499.     def __init__(self, this):
  1500.         self.this = this
  1501.         if not hasattr(self, 'thisown'):
  1502.             self.thisown = 0
  1503.         
  1504.         self.__class__ = StaticBitmap
  1505.  
  1506.  
  1507. _controls_.StaticBitmap_swigregister(StaticBitmapPtr)
  1508.  
  1509. def PreStaticBitmap(*args, **kwargs):
  1510.     '''PreStaticBitmap() -> StaticBitmap'''
  1511.     val = _controls_.new_PreStaticBitmap(*args, **kwargs)
  1512.     val.thisown = 1
  1513.     return val
  1514.  
  1515.  
  1516. def StaticBitmap_GetClassDefaultAttributes(*args, **kwargs):
  1517.     """
  1518.     StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1519.  
  1520.     Get the default attributes for this class.  This is useful if you want
  1521.     to use the same font or colour in your own control as in a standard
  1522.     control -- which is a much better idea than hard coding specific
  1523.     colours or fonts which might look completely out of place on the
  1524.     user's system, especially if it uses themes.
  1525.  
  1526.     The variant parameter is only relevant under Mac currently and is
  1527.     ignore under other platforms. Under Mac, it will change the size of
  1528.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1529.     this.
  1530.     """
  1531.     return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs)
  1532.  
  1533.  
  1534. class ListBox(_core.ControlWithItems):
  1535.     '''Proxy of C++ ListBox class'''
  1536.     
  1537.     def __repr__(self):
  1538.         return '<%s.%s; proxy of C++ wxListBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1539.  
  1540.     
  1541.     def __init__(self, *args, **kwargs):
  1542.         '''
  1543.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1544.             Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, 
  1545.             long style=0, Validator validator=DefaultValidator, 
  1546.             String name=ListBoxNameStr) -> ListBox
  1547.         '''
  1548.         newobj = _controls_.new_ListBox(*args, **kwargs)
  1549.         self.this = newobj.this
  1550.         self.thisown = 1
  1551.         del newobj.thisown
  1552.         self._setOORInfo(self)
  1553.  
  1554.     
  1555.     def Create(*args, **kwargs):
  1556.         '''
  1557.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1558.             Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, 
  1559.             long style=0, Validator validator=DefaultValidator, 
  1560.             String name=ListBoxNameStr) -> bool
  1561.         '''
  1562.         return _controls_.ListBox_Create(*args, **kwargs)
  1563.  
  1564.     
  1565.     def Insert(*args, **kwargs):
  1566.         '''
  1567.         Insert(self, String item, int pos, PyObject clientData=None)
  1568.  
  1569.         Insert an item into the control before the item at the ``pos`` index,
  1570.         optionally associating some data object with the item.
  1571.         '''
  1572.         return _controls_.ListBox_Insert(*args, **kwargs)
  1573.  
  1574.     
  1575.     def InsertItems(*args, **kwargs):
  1576.         '''InsertItems(self, wxArrayString items, int pos)'''
  1577.         return _controls_.ListBox_InsertItems(*args, **kwargs)
  1578.  
  1579.     
  1580.     def Set(*args, **kwargs):
  1581.         '''Set(self, wxArrayString items)'''
  1582.         return _controls_.ListBox_Set(*args, **kwargs)
  1583.  
  1584.     
  1585.     def IsSelected(*args, **kwargs):
  1586.         '''IsSelected(self, int n) -> bool'''
  1587.         return _controls_.ListBox_IsSelected(*args, **kwargs)
  1588.  
  1589.     
  1590.     def SetSelection(*args, **kwargs):
  1591.         '''SetSelection(self, int n, bool select=True)'''
  1592.         return _controls_.ListBox_SetSelection(*args, **kwargs)
  1593.  
  1594.     
  1595.     def Select(*args, **kwargs):
  1596.         '''
  1597.         Select(self, int n)
  1598.  
  1599.         This is the same as `SetSelection` and exists only because it is
  1600.         slightly more natural for controls which support multiple selection.
  1601.         '''
  1602.         return _controls_.ListBox_Select(*args, **kwargs)
  1603.  
  1604.     
  1605.     def Deselect(*args, **kwargs):
  1606.         '''Deselect(self, int n)'''
  1607.         return _controls_.ListBox_Deselect(*args, **kwargs)
  1608.  
  1609.     
  1610.     def DeselectAll(*args, **kwargs):
  1611.         '''DeselectAll(self, int itemToLeaveSelected=-1)'''
  1612.         return _controls_.ListBox_DeselectAll(*args, **kwargs)
  1613.  
  1614.     
  1615.     def SetStringSelection(*args, **kwargs):
  1616.         '''SetStringSelection(self, String s, bool select=True) -> bool'''
  1617.         return _controls_.ListBox_SetStringSelection(*args, **kwargs)
  1618.  
  1619.     
  1620.     def GetSelections(*args, **kwargs):
  1621.         '''GetSelections(self) -> PyObject'''
  1622.         return _controls_.ListBox_GetSelections(*args, **kwargs)
  1623.  
  1624.     
  1625.     def SetFirstItem(*args, **kwargs):
  1626.         '''SetFirstItem(self, int n)'''
  1627.         return _controls_.ListBox_SetFirstItem(*args, **kwargs)
  1628.  
  1629.     
  1630.     def SetFirstItemStr(*args, **kwargs):
  1631.         '''SetFirstItemStr(self, String s)'''
  1632.         return _controls_.ListBox_SetFirstItemStr(*args, **kwargs)
  1633.  
  1634.     
  1635.     def EnsureVisible(*args, **kwargs):
  1636.         '''EnsureVisible(self, int n)'''
  1637.         return _controls_.ListBox_EnsureVisible(*args, **kwargs)
  1638.  
  1639.     
  1640.     def AppendAndEnsureVisible(*args, **kwargs):
  1641.         '''AppendAndEnsureVisible(self, String s)'''
  1642.         return _controls_.ListBox_AppendAndEnsureVisible(*args, **kwargs)
  1643.  
  1644.     
  1645.     def IsSorted(*args, **kwargs):
  1646.         '''IsSorted(self) -> bool'''
  1647.         return _controls_.ListBox_IsSorted(*args, **kwargs)
  1648.  
  1649.     
  1650.     def SetItemForegroundColour(*args, **kwargs):
  1651.         '''SetItemForegroundColour(self, int item, Colour c)'''
  1652.         return _controls_.ListBox_SetItemForegroundColour(*args, **kwargs)
  1653.  
  1654.     
  1655.     def SetItemBackgroundColour(*args, **kwargs):
  1656.         '''SetItemBackgroundColour(self, int item, Colour c)'''
  1657.         return _controls_.ListBox_SetItemBackgroundColour(*args, **kwargs)
  1658.  
  1659.     
  1660.     def SetItemFont(*args, **kwargs):
  1661.         '''SetItemFont(self, int item, Font f)'''
  1662.         return _controls_.ListBox_SetItemFont(*args, **kwargs)
  1663.  
  1664.     
  1665.     def GetClassDefaultAttributes(*args, **kwargs):
  1666.         """
  1667.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1668.  
  1669.         Get the default attributes for this class.  This is useful if you want
  1670.         to use the same font or colour in your own control as in a standard
  1671.         control -- which is a much better idea than hard coding specific
  1672.         colours or fonts which might look completely out of place on the
  1673.         user's system, especially if it uses themes.
  1674.  
  1675.         The variant parameter is only relevant under Mac currently and is
  1676.         ignore under other platforms. Under Mac, it will change the size of
  1677.         the returned font. See `wx.Window.SetWindowVariant` for more about
  1678.         this.
  1679.         """
  1680.         return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs)
  1681.  
  1682.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  1683.  
  1684.  
  1685. class ListBoxPtr(ListBox):
  1686.     
  1687.     def __init__(self, this):
  1688.         self.this = this
  1689.         if not hasattr(self, 'thisown'):
  1690.             self.thisown = 0
  1691.         
  1692.         self.__class__ = ListBox
  1693.  
  1694.  
  1695. _controls_.ListBox_swigregister(ListBoxPtr)
  1696. ListBoxNameStr = cvar.ListBoxNameStr
  1697.  
  1698. def PreListBox(*args, **kwargs):
  1699.     '''PreListBox() -> ListBox'''
  1700.     val = _controls_.new_PreListBox(*args, **kwargs)
  1701.     val.thisown = 1
  1702.     return val
  1703.  
  1704.  
  1705. def ListBox_GetClassDefaultAttributes(*args, **kwargs):
  1706.     """
  1707.     ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  1708.  
  1709.     Get the default attributes for this class.  This is useful if you want
  1710.     to use the same font or colour in your own control as in a standard
  1711.     control -- which is a much better idea than hard coding specific
  1712.     colours or fonts which might look completely out of place on the
  1713.     user's system, especially if it uses themes.
  1714.  
  1715.     The variant parameter is only relevant under Mac currently and is
  1716.     ignore under other platforms. Under Mac, it will change the size of
  1717.     the returned font. See `wx.Window.SetWindowVariant` for more about
  1718.     this.
  1719.     """
  1720.     return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs)
  1721.  
  1722.  
  1723. class CheckListBox(ListBox):
  1724.     '''Proxy of C++ CheckListBox class'''
  1725.     
  1726.     def __repr__(self):
  1727.         return '<%s.%s; proxy of C++ wxCheckListBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1728.  
  1729.     
  1730.     def __init__(self, *args, **kwargs):
  1731.         '''
  1732.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1733.             Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, 
  1734.             long style=0, Validator validator=DefaultValidator, 
  1735.             String name=ListBoxNameStr) -> CheckListBox
  1736.         '''
  1737.         newobj = _controls_.new_CheckListBox(*args, **kwargs)
  1738.         self.this = newobj.this
  1739.         self.thisown = 1
  1740.         del newobj.thisown
  1741.         self._setOORInfo(self)
  1742.  
  1743.     
  1744.     def Create(*args, **kwargs):
  1745.         '''
  1746.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  1747.             Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, 
  1748.             long style=0, Validator validator=DefaultValidator, 
  1749.             String name=ListBoxNameStr) -> bool
  1750.         '''
  1751.         return _controls_.CheckListBox_Create(*args, **kwargs)
  1752.  
  1753.     
  1754.     def IsChecked(*args, **kwargs):
  1755.         '''IsChecked(self, int index) -> bool'''
  1756.         return _controls_.CheckListBox_IsChecked(*args, **kwargs)
  1757.  
  1758.     
  1759.     def Check(*args, **kwargs):
  1760.         '''Check(self, int index, int check=True)'''
  1761.         return _controls_.CheckListBox_Check(*args, **kwargs)
  1762.  
  1763.     
  1764.     def GetItemHeight(*args, **kwargs):
  1765.         '''GetItemHeight(self) -> int'''
  1766.         return _controls_.CheckListBox_GetItemHeight(*args, **kwargs)
  1767.  
  1768.     
  1769.     def HitTest(*args, **kwargs):
  1770.         '''
  1771.         HitTest(self, Point pt) -> int
  1772.  
  1773.         Test where the given (in client coords) point lies
  1774.         '''
  1775.         return _controls_.CheckListBox_HitTest(*args, **kwargs)
  1776.  
  1777.     
  1778.     def HitTestXY(*args, **kwargs):
  1779.         '''
  1780.         HitTestXY(self, int x, int y) -> int
  1781.  
  1782.         Test where the given (in client coords) point lies
  1783.         '''
  1784.         return _controls_.CheckListBox_HitTestXY(*args, **kwargs)
  1785.  
  1786.  
  1787.  
  1788. class CheckListBoxPtr(CheckListBox):
  1789.     
  1790.     def __init__(self, this):
  1791.         self.this = this
  1792.         if not hasattr(self, 'thisown'):
  1793.             self.thisown = 0
  1794.         
  1795.         self.__class__ = CheckListBox
  1796.  
  1797.  
  1798. _controls_.CheckListBox_swigregister(CheckListBoxPtr)
  1799.  
  1800. def PreCheckListBox(*args, **kwargs):
  1801.     '''PreCheckListBox() -> CheckListBox'''
  1802.     val = _controls_.new_PreCheckListBox(*args, **kwargs)
  1803.     val.thisown = 1
  1804.     return val
  1805.  
  1806. TE_NO_VSCROLL = _controls_.TE_NO_VSCROLL
  1807. TE_AUTO_SCROLL = _controls_.TE_AUTO_SCROLL
  1808. TE_READONLY = _controls_.TE_READONLY
  1809. TE_MULTILINE = _controls_.TE_MULTILINE
  1810. TE_PROCESS_TAB = _controls_.TE_PROCESS_TAB
  1811. TE_LEFT = _controls_.TE_LEFT
  1812. TE_CENTER = _controls_.TE_CENTER
  1813. TE_RIGHT = _controls_.TE_RIGHT
  1814. TE_CENTRE = _controls_.TE_CENTRE
  1815. TE_RICH = _controls_.TE_RICH
  1816. TE_PROCESS_ENTER = _controls_.TE_PROCESS_ENTER
  1817. TE_PASSWORD = _controls_.TE_PASSWORD
  1818. TE_AUTO_URL = _controls_.TE_AUTO_URL
  1819. TE_NOHIDESEL = _controls_.TE_NOHIDESEL
  1820. TE_DONTWRAP = _controls_.TE_DONTWRAP
  1821. TE_CHARWRAP = _controls_.TE_CHARWRAP
  1822. TE_WORDWRAP = _controls_.TE_WORDWRAP
  1823. TE_BESTWRAP = _controls_.TE_BESTWRAP
  1824. TE_LINEWRAP = _controls_.TE_LINEWRAP
  1825. TE_RICH2 = _controls_.TE_RICH2
  1826. TE_CAPITALIZE = _controls_.TE_CAPITALIZE
  1827. TEXT_ALIGNMENT_DEFAULT = _controls_.TEXT_ALIGNMENT_DEFAULT
  1828. TEXT_ALIGNMENT_LEFT = _controls_.TEXT_ALIGNMENT_LEFT
  1829. TEXT_ALIGNMENT_CENTRE = _controls_.TEXT_ALIGNMENT_CENTRE
  1830. TEXT_ALIGNMENT_CENTER = _controls_.TEXT_ALIGNMENT_CENTER
  1831. TEXT_ALIGNMENT_RIGHT = _controls_.TEXT_ALIGNMENT_RIGHT
  1832. TEXT_ALIGNMENT_JUSTIFIED = _controls_.TEXT_ALIGNMENT_JUSTIFIED
  1833. TEXT_ATTR_TEXT_COLOUR = _controls_.TEXT_ATTR_TEXT_COLOUR
  1834. TEXT_ATTR_BACKGROUND_COLOUR = _controls_.TEXT_ATTR_BACKGROUND_COLOUR
  1835. TEXT_ATTR_FONT_FACE = _controls_.TEXT_ATTR_FONT_FACE
  1836. TEXT_ATTR_FONT_SIZE = _controls_.TEXT_ATTR_FONT_SIZE
  1837. TEXT_ATTR_FONT_WEIGHT = _controls_.TEXT_ATTR_FONT_WEIGHT
  1838. TEXT_ATTR_FONT_ITALIC = _controls_.TEXT_ATTR_FONT_ITALIC
  1839. TEXT_ATTR_FONT_UNDERLINE = _controls_.TEXT_ATTR_FONT_UNDERLINE
  1840. TEXT_ATTR_FONT = _controls_.TEXT_ATTR_FONT
  1841. TEXT_ATTR_ALIGNMENT = _controls_.TEXT_ATTR_ALIGNMENT
  1842. TEXT_ATTR_LEFT_INDENT = _controls_.TEXT_ATTR_LEFT_INDENT
  1843. TEXT_ATTR_RIGHT_INDENT = _controls_.TEXT_ATTR_RIGHT_INDENT
  1844. TEXT_ATTR_TABS = _controls_.TEXT_ATTR_TABS
  1845. TE_HT_UNKNOWN = _controls_.TE_HT_UNKNOWN
  1846. TE_HT_BEFORE = _controls_.TE_HT_BEFORE
  1847. TE_HT_ON_TEXT = _controls_.TE_HT_ON_TEXT
  1848. TE_HT_BELOW = _controls_.TE_HT_BELOW
  1849. TE_HT_BEYOND = _controls_.TE_HT_BEYOND
  1850. OutOfRangeTextCoord = _controls_.OutOfRangeTextCoord
  1851. InvalidTextCoord = _controls_.InvalidTextCoord
  1852.  
  1853. class TextAttr(object):
  1854.     '''Proxy of C++ TextAttr class'''
  1855.     
  1856.     def __repr__(self):
  1857.         return '<%s.%s; proxy of C++ wxTextAttr instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1858.  
  1859.     
  1860.     def __init__(self, *args, **kwargs):
  1861.         '''
  1862.         __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, 
  1863.             Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
  1864.         '''
  1865.         newobj = _controls_.new_TextAttr(*args, **kwargs)
  1866.         self.this = newobj.this
  1867.         self.thisown = 1
  1868.         del newobj.thisown
  1869.  
  1870.     
  1871.     def __del__(self, destroy = _controls_.delete_TextAttr):
  1872.         '''__del__(self)'''
  1873.         
  1874.         try:
  1875.             if self.thisown:
  1876.                 destroy(self)
  1877.         except:
  1878.             pass
  1879.  
  1880.  
  1881.     
  1882.     def Init(*args, **kwargs):
  1883.         '''Init(self)'''
  1884.         return _controls_.TextAttr_Init(*args, **kwargs)
  1885.  
  1886.     
  1887.     def SetTextColour(*args, **kwargs):
  1888.         '''SetTextColour(self, Colour colText)'''
  1889.         return _controls_.TextAttr_SetTextColour(*args, **kwargs)
  1890.  
  1891.     
  1892.     def SetBackgroundColour(*args, **kwargs):
  1893.         '''SetBackgroundColour(self, Colour colBack)'''
  1894.         return _controls_.TextAttr_SetBackgroundColour(*args, **kwargs)
  1895.  
  1896.     
  1897.     def SetFont(*args, **kwargs):
  1898.         '''SetFont(self, Font font, long flags=TEXT_ATTR_FONT)'''
  1899.         return _controls_.TextAttr_SetFont(*args, **kwargs)
  1900.  
  1901.     
  1902.     def SetAlignment(*args, **kwargs):
  1903.         '''SetAlignment(self, int alignment)'''
  1904.         return _controls_.TextAttr_SetAlignment(*args, **kwargs)
  1905.  
  1906.     
  1907.     def SetTabs(*args, **kwargs):
  1908.         '''SetTabs(self, wxArrayInt tabs)'''
  1909.         return _controls_.TextAttr_SetTabs(*args, **kwargs)
  1910.  
  1911.     
  1912.     def SetLeftIndent(*args, **kwargs):
  1913.         '''SetLeftIndent(self, int indent, int subIndent=0)'''
  1914.         return _controls_.TextAttr_SetLeftIndent(*args, **kwargs)
  1915.  
  1916.     
  1917.     def SetRightIndent(*args, **kwargs):
  1918.         '''SetRightIndent(self, int indent)'''
  1919.         return _controls_.TextAttr_SetRightIndent(*args, **kwargs)
  1920.  
  1921.     
  1922.     def SetFlags(*args, **kwargs):
  1923.         '''SetFlags(self, long flags)'''
  1924.         return _controls_.TextAttr_SetFlags(*args, **kwargs)
  1925.  
  1926.     
  1927.     def HasTextColour(*args, **kwargs):
  1928.         '''HasTextColour(self) -> bool'''
  1929.         return _controls_.TextAttr_HasTextColour(*args, **kwargs)
  1930.  
  1931.     
  1932.     def HasBackgroundColour(*args, **kwargs):
  1933.         '''HasBackgroundColour(self) -> bool'''
  1934.         return _controls_.TextAttr_HasBackgroundColour(*args, **kwargs)
  1935.  
  1936.     
  1937.     def HasFont(*args, **kwargs):
  1938.         '''HasFont(self) -> bool'''
  1939.         return _controls_.TextAttr_HasFont(*args, **kwargs)
  1940.  
  1941.     
  1942.     def HasAlignment(*args, **kwargs):
  1943.         '''HasAlignment(self) -> bool'''
  1944.         return _controls_.TextAttr_HasAlignment(*args, **kwargs)
  1945.  
  1946.     
  1947.     def HasTabs(*args, **kwargs):
  1948.         '''HasTabs(self) -> bool'''
  1949.         return _controls_.TextAttr_HasTabs(*args, **kwargs)
  1950.  
  1951.     
  1952.     def HasLeftIndent(*args, **kwargs):
  1953.         '''HasLeftIndent(self) -> bool'''
  1954.         return _controls_.TextAttr_HasLeftIndent(*args, **kwargs)
  1955.  
  1956.     
  1957.     def HasRightIndent(*args, **kwargs):
  1958.         '''HasRightIndent(self) -> bool'''
  1959.         return _controls_.TextAttr_HasRightIndent(*args, **kwargs)
  1960.  
  1961.     
  1962.     def HasFlag(*args, **kwargs):
  1963.         '''HasFlag(self, long flag) -> bool'''
  1964.         return _controls_.TextAttr_HasFlag(*args, **kwargs)
  1965.  
  1966.     
  1967.     def GetTextColour(*args, **kwargs):
  1968.         '''GetTextColour(self) -> Colour'''
  1969.         return _controls_.TextAttr_GetTextColour(*args, **kwargs)
  1970.  
  1971.     
  1972.     def GetBackgroundColour(*args, **kwargs):
  1973.         '''GetBackgroundColour(self) -> Colour'''
  1974.         return _controls_.TextAttr_GetBackgroundColour(*args, **kwargs)
  1975.  
  1976.     
  1977.     def GetFont(*args, **kwargs):
  1978.         '''GetFont(self) -> Font'''
  1979.         return _controls_.TextAttr_GetFont(*args, **kwargs)
  1980.  
  1981.     
  1982.     def GetAlignment(*args, **kwargs):
  1983.         '''GetAlignment(self) -> int'''
  1984.         return _controls_.TextAttr_GetAlignment(*args, **kwargs)
  1985.  
  1986.     
  1987.     def GetTabs(*args, **kwargs):
  1988.         '''GetTabs(self) -> wxArrayInt'''
  1989.         return _controls_.TextAttr_GetTabs(*args, **kwargs)
  1990.  
  1991.     
  1992.     def GetLeftIndent(*args, **kwargs):
  1993.         '''GetLeftIndent(self) -> long'''
  1994.         return _controls_.TextAttr_GetLeftIndent(*args, **kwargs)
  1995.  
  1996.     
  1997.     def GetLeftSubIndent(*args, **kwargs):
  1998.         '''GetLeftSubIndent(self) -> long'''
  1999.         return _controls_.TextAttr_GetLeftSubIndent(*args, **kwargs)
  2000.  
  2001.     
  2002.     def GetRightIndent(*args, **kwargs):
  2003.         '''GetRightIndent(self) -> long'''
  2004.         return _controls_.TextAttr_GetRightIndent(*args, **kwargs)
  2005.  
  2006.     
  2007.     def GetFlags(*args, **kwargs):
  2008.         '''GetFlags(self) -> long'''
  2009.         return _controls_.TextAttr_GetFlags(*args, **kwargs)
  2010.  
  2011.     
  2012.     def IsDefault(*args, **kwargs):
  2013.         '''IsDefault(self) -> bool'''
  2014.         return _controls_.TextAttr_IsDefault(*args, **kwargs)
  2015.  
  2016.     
  2017.     def Combine(*args, **kwargs):
  2018.         '''Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr'''
  2019.         return _controls_.TextAttr_Combine(*args, **kwargs)
  2020.  
  2021.     Combine = staticmethod(Combine)
  2022.  
  2023.  
  2024. class TextAttrPtr(TextAttr):
  2025.     
  2026.     def __init__(self, this):
  2027.         self.this = this
  2028.         if not hasattr(self, 'thisown'):
  2029.             self.thisown = 0
  2030.         
  2031.         self.__class__ = TextAttr
  2032.  
  2033.  
  2034. _controls_.TextAttr_swigregister(TextAttrPtr)
  2035. TextCtrlNameStr = cvar.TextCtrlNameStr
  2036.  
  2037. def TextAttr_Combine(*args, **kwargs):
  2038.     '''TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr'''
  2039.     return _controls_.TextAttr_Combine(*args, **kwargs)
  2040.  
  2041.  
  2042. class TextCtrl(_core.Control):
  2043.     '''Proxy of C++ TextCtrl class'''
  2044.     
  2045.     def __repr__(self):
  2046.         return '<%s.%s; proxy of C++ wxTextCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2047.  
  2048.     
  2049.     def __init__(self, *args, **kwargs):
  2050.         '''
  2051.         __init__(self, Window parent, int id=-1, String value=EmptyString, 
  2052.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2053.             long style=0, Validator validator=DefaultValidator, 
  2054.             String name=TextCtrlNameStr) -> TextCtrl
  2055.         '''
  2056.         newobj = _controls_.new_TextCtrl(*args, **kwargs)
  2057.         self.this = newobj.this
  2058.         self.thisown = 1
  2059.         del newobj.thisown
  2060.         self._setOORInfo(self)
  2061.  
  2062.     
  2063.     def Create(*args, **kwargs):
  2064.         '''
  2065.         Create(self, Window parent, int id=-1, String value=EmptyString, 
  2066.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2067.             long style=0, Validator validator=DefaultValidator, 
  2068.             String name=TextCtrlNameStr) -> bool
  2069.         '''
  2070.         return _controls_.TextCtrl_Create(*args, **kwargs)
  2071.  
  2072.     
  2073.     def GetValue(*args, **kwargs):
  2074.         '''GetValue(self) -> String'''
  2075.         return _controls_.TextCtrl_GetValue(*args, **kwargs)
  2076.  
  2077.     
  2078.     def SetValue(*args, **kwargs):
  2079.         '''SetValue(self, String value)'''
  2080.         return _controls_.TextCtrl_SetValue(*args, **kwargs)
  2081.  
  2082.     
  2083.     def GetRange(*args, **kwargs):
  2084.         '''GetRange(self, long from, long to) -> String'''
  2085.         return _controls_.TextCtrl_GetRange(*args, **kwargs)
  2086.  
  2087.     
  2088.     def GetLineLength(*args, **kwargs):
  2089.         '''GetLineLength(self, long lineNo) -> int'''
  2090.         return _controls_.TextCtrl_GetLineLength(*args, **kwargs)
  2091.  
  2092.     
  2093.     def GetLineText(*args, **kwargs):
  2094.         '''GetLineText(self, long lineNo) -> String'''
  2095.         return _controls_.TextCtrl_GetLineText(*args, **kwargs)
  2096.  
  2097.     
  2098.     def GetNumberOfLines(*args, **kwargs):
  2099.         '''GetNumberOfLines(self) -> int'''
  2100.         return _controls_.TextCtrl_GetNumberOfLines(*args, **kwargs)
  2101.  
  2102.     
  2103.     def IsModified(*args, **kwargs):
  2104.         '''IsModified(self) -> bool'''
  2105.         return _controls_.TextCtrl_IsModified(*args, **kwargs)
  2106.  
  2107.     
  2108.     def IsEditable(*args, **kwargs):
  2109.         '''IsEditable(self) -> bool'''
  2110.         return _controls_.TextCtrl_IsEditable(*args, **kwargs)
  2111.  
  2112.     
  2113.     def IsSingleLine(*args, **kwargs):
  2114.         '''IsSingleLine(self) -> bool'''
  2115.         return _controls_.TextCtrl_IsSingleLine(*args, **kwargs)
  2116.  
  2117.     
  2118.     def IsMultiLine(*args, **kwargs):
  2119.         '''IsMultiLine(self) -> bool'''
  2120.         return _controls_.TextCtrl_IsMultiLine(*args, **kwargs)
  2121.  
  2122.     
  2123.     def GetSelection(*args, **kwargs):
  2124.         '''
  2125.         GetSelection() -> (from, to)
  2126.  
  2127.         If the return values from and to are the same, there is no selection.
  2128.         '''
  2129.         return _controls_.TextCtrl_GetSelection(*args, **kwargs)
  2130.  
  2131.     
  2132.     def GetStringSelection(*args, **kwargs):
  2133.         '''GetStringSelection(self) -> String'''
  2134.         return _controls_.TextCtrl_GetStringSelection(*args, **kwargs)
  2135.  
  2136.     
  2137.     def Clear(*args, **kwargs):
  2138.         '''Clear(self)'''
  2139.         return _controls_.TextCtrl_Clear(*args, **kwargs)
  2140.  
  2141.     
  2142.     def Replace(*args, **kwargs):
  2143.         '''Replace(self, long from, long to, String value)'''
  2144.         return _controls_.TextCtrl_Replace(*args, **kwargs)
  2145.  
  2146.     
  2147.     def Remove(*args, **kwargs):
  2148.         '''Remove(self, long from, long to)'''
  2149.         return _controls_.TextCtrl_Remove(*args, **kwargs)
  2150.  
  2151.     
  2152.     def LoadFile(*args, **kwargs):
  2153.         '''LoadFile(self, String file) -> bool'''
  2154.         return _controls_.TextCtrl_LoadFile(*args, **kwargs)
  2155.  
  2156.     
  2157.     def SaveFile(*args, **kwargs):
  2158.         '''SaveFile(self, String file=EmptyString) -> bool'''
  2159.         return _controls_.TextCtrl_SaveFile(*args, **kwargs)
  2160.  
  2161.     
  2162.     def MarkDirty(*args, **kwargs):
  2163.         '''MarkDirty(self)'''
  2164.         return _controls_.TextCtrl_MarkDirty(*args, **kwargs)
  2165.  
  2166.     
  2167.     def DiscardEdits(*args, **kwargs):
  2168.         '''DiscardEdits(self)'''
  2169.         return _controls_.TextCtrl_DiscardEdits(*args, **kwargs)
  2170.  
  2171.     
  2172.     def SetMaxLength(*args, **kwargs):
  2173.         '''SetMaxLength(self, unsigned long len)'''
  2174.         return _controls_.TextCtrl_SetMaxLength(*args, **kwargs)
  2175.  
  2176.     
  2177.     def WriteText(*args, **kwargs):
  2178.         '''WriteText(self, String text)'''
  2179.         return _controls_.TextCtrl_WriteText(*args, **kwargs)
  2180.  
  2181.     
  2182.     def AppendText(*args, **kwargs):
  2183.         '''AppendText(self, String text)'''
  2184.         return _controls_.TextCtrl_AppendText(*args, **kwargs)
  2185.  
  2186.     
  2187.     def EmulateKeyPress(*args, **kwargs):
  2188.         '''EmulateKeyPress(self, KeyEvent event) -> bool'''
  2189.         return _controls_.TextCtrl_EmulateKeyPress(*args, **kwargs)
  2190.  
  2191.     
  2192.     def SetStyle(*args, **kwargs):
  2193.         '''SetStyle(self, long start, long end, TextAttr style) -> bool'''
  2194.         return _controls_.TextCtrl_SetStyle(*args, **kwargs)
  2195.  
  2196.     
  2197.     def GetStyle(*args, **kwargs):
  2198.         '''GetStyle(self, long position, TextAttr style) -> bool'''
  2199.         return _controls_.TextCtrl_GetStyle(*args, **kwargs)
  2200.  
  2201.     
  2202.     def SetDefaultStyle(*args, **kwargs):
  2203.         '''SetDefaultStyle(self, TextAttr style) -> bool'''
  2204.         return _controls_.TextCtrl_SetDefaultStyle(*args, **kwargs)
  2205.  
  2206.     
  2207.     def GetDefaultStyle(*args, **kwargs):
  2208.         '''GetDefaultStyle(self) -> TextAttr'''
  2209.         return _controls_.TextCtrl_GetDefaultStyle(*args, **kwargs)
  2210.  
  2211.     
  2212.     def XYToPosition(*args, **kwargs):
  2213.         '''XYToPosition(self, long x, long y) -> long'''
  2214.         return _controls_.TextCtrl_XYToPosition(*args, **kwargs)
  2215.  
  2216.     
  2217.     def PositionToXY(*args, **kwargs):
  2218.         '''PositionToXY(long pos) -> (x, y)'''
  2219.         return _controls_.TextCtrl_PositionToXY(*args, **kwargs)
  2220.  
  2221.     
  2222.     def ShowPosition(*args, **kwargs):
  2223.         '''ShowPosition(self, long pos)'''
  2224.         return _controls_.TextCtrl_ShowPosition(*args, **kwargs)
  2225.  
  2226.     
  2227.     def HitTest(*args, **kwargs):
  2228.         '''
  2229.         HitTest(Point pt) -> (result, col, row)
  2230.  
  2231.         Find the row, col coresponding to the character at the point given in
  2232.         pixels. NB: pt is in device coords but is not adjusted for the client
  2233.         area origin nor scrolling.
  2234.         '''
  2235.         return _controls_.TextCtrl_HitTest(*args, **kwargs)
  2236.  
  2237.     
  2238.     def HitTestPos(*args, **kwargs):
  2239.         '''
  2240.         HitTestPos(Point pt) -> (result, position)
  2241.  
  2242.         Find the character position in the text coresponding to the point
  2243.         given in pixels. NB: pt is in device coords but is not adjusted for
  2244.         the client area origin nor scrolling. 
  2245.         '''
  2246.         return _controls_.TextCtrl_HitTestPos(*args, **kwargs)
  2247.  
  2248.     
  2249.     def Copy(*args, **kwargs):
  2250.         '''Copy(self)'''
  2251.         return _controls_.TextCtrl_Copy(*args, **kwargs)
  2252.  
  2253.     
  2254.     def Cut(*args, **kwargs):
  2255.         '''Cut(self)'''
  2256.         return _controls_.TextCtrl_Cut(*args, **kwargs)
  2257.  
  2258.     
  2259.     def Paste(*args, **kwargs):
  2260.         '''Paste(self)'''
  2261.         return _controls_.TextCtrl_Paste(*args, **kwargs)
  2262.  
  2263.     
  2264.     def CanCopy(*args, **kwargs):
  2265.         '''CanCopy(self) -> bool'''
  2266.         return _controls_.TextCtrl_CanCopy(*args, **kwargs)
  2267.  
  2268.     
  2269.     def CanCut(*args, **kwargs):
  2270.         '''CanCut(self) -> bool'''
  2271.         return _controls_.TextCtrl_CanCut(*args, **kwargs)
  2272.  
  2273.     
  2274.     def CanPaste(*args, **kwargs):
  2275.         '''CanPaste(self) -> bool'''
  2276.         return _controls_.TextCtrl_CanPaste(*args, **kwargs)
  2277.  
  2278.     
  2279.     def Undo(*args, **kwargs):
  2280.         '''Undo(self)'''
  2281.         return _controls_.TextCtrl_Undo(*args, **kwargs)
  2282.  
  2283.     
  2284.     def Redo(*args, **kwargs):
  2285.         '''Redo(self)'''
  2286.         return _controls_.TextCtrl_Redo(*args, **kwargs)
  2287.  
  2288.     
  2289.     def CanUndo(*args, **kwargs):
  2290.         '''CanUndo(self) -> bool'''
  2291.         return _controls_.TextCtrl_CanUndo(*args, **kwargs)
  2292.  
  2293.     
  2294.     def CanRedo(*args, **kwargs):
  2295.         '''CanRedo(self) -> bool'''
  2296.         return _controls_.TextCtrl_CanRedo(*args, **kwargs)
  2297.  
  2298.     
  2299.     def SetInsertionPoint(*args, **kwargs):
  2300.         '''SetInsertionPoint(self, long pos)'''
  2301.         return _controls_.TextCtrl_SetInsertionPoint(*args, **kwargs)
  2302.  
  2303.     
  2304.     def SetInsertionPointEnd(*args, **kwargs):
  2305.         '''SetInsertionPointEnd(self)'''
  2306.         return _controls_.TextCtrl_SetInsertionPointEnd(*args, **kwargs)
  2307.  
  2308.     
  2309.     def GetInsertionPoint(*args, **kwargs):
  2310.         '''GetInsertionPoint(self) -> long'''
  2311.         return _controls_.TextCtrl_GetInsertionPoint(*args, **kwargs)
  2312.  
  2313.     
  2314.     def GetLastPosition(*args, **kwargs):
  2315.         '''GetLastPosition(self) -> long'''
  2316.         return _controls_.TextCtrl_GetLastPosition(*args, **kwargs)
  2317.  
  2318.     
  2319.     def SetSelection(*args, **kwargs):
  2320.         '''SetSelection(self, long from, long to)'''
  2321.         return _controls_.TextCtrl_SetSelection(*args, **kwargs)
  2322.  
  2323.     
  2324.     def SelectAll(*args, **kwargs):
  2325.         '''SelectAll(self)'''
  2326.         return _controls_.TextCtrl_SelectAll(*args, **kwargs)
  2327.  
  2328.     
  2329.     def SetEditable(*args, **kwargs):
  2330.         '''SetEditable(self, bool editable)'''
  2331.         return _controls_.TextCtrl_SetEditable(*args, **kwargs)
  2332.  
  2333.     
  2334.     def ShowNativeCaret(*args, **kwargs):
  2335.         '''ShowNativeCaret(self, bool show=True) -> bool'''
  2336.         return _controls_.TextCtrl_ShowNativeCaret(*args, **kwargs)
  2337.  
  2338.     
  2339.     def HideNativeCaret(*args, **kwargs):
  2340.         '''HideNativeCaret(self) -> bool'''
  2341.         return _controls_.TextCtrl_HideNativeCaret(*args, **kwargs)
  2342.  
  2343.     
  2344.     def write(*args, **kwargs):
  2345.         '''write(self, String text)'''
  2346.         return _controls_.TextCtrl_write(*args, **kwargs)
  2347.  
  2348.     
  2349.     def GetString(*args, **kwargs):
  2350.         '''GetString(self, long from, long to) -> String'''
  2351.         return _controls_.TextCtrl_GetString(*args, **kwargs)
  2352.  
  2353.     
  2354.     def GetClassDefaultAttributes(*args, **kwargs):
  2355.         """
  2356.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2357.  
  2358.         Get the default attributes for this class.  This is useful if you want
  2359.         to use the same font or colour in your own control as in a standard
  2360.         control -- which is a much better idea than hard coding specific
  2361.         colours or fonts which might look completely out of place on the
  2362.         user's system, especially if it uses themes.
  2363.  
  2364.         The variant parameter is only relevant under Mac currently and is
  2365.         ignore under other platforms. Under Mac, it will change the size of
  2366.         the returned font. See `wx.Window.SetWindowVariant` for more about
  2367.         this.
  2368.         """
  2369.         return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs)
  2370.  
  2371.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  2372.  
  2373.  
  2374. class TextCtrlPtr(TextCtrl):
  2375.     
  2376.     def __init__(self, this):
  2377.         self.this = this
  2378.         if not hasattr(self, 'thisown'):
  2379.             self.thisown = 0
  2380.         
  2381.         self.__class__ = TextCtrl
  2382.  
  2383.  
  2384. _controls_.TextCtrl_swigregister(TextCtrlPtr)
  2385.  
  2386. def PreTextCtrl(*args, **kwargs):
  2387.     '''PreTextCtrl() -> TextCtrl'''
  2388.     val = _controls_.new_PreTextCtrl(*args, **kwargs)
  2389.     val.thisown = 1
  2390.     return val
  2391.  
  2392.  
  2393. def TextCtrl_GetClassDefaultAttributes(*args, **kwargs):
  2394.     """
  2395.     TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2396.  
  2397.     Get the default attributes for this class.  This is useful if you want
  2398.     to use the same font or colour in your own control as in a standard
  2399.     control -- which is a much better idea than hard coding specific
  2400.     colours or fonts which might look completely out of place on the
  2401.     user's system, especially if it uses themes.
  2402.  
  2403.     The variant parameter is only relevant under Mac currently and is
  2404.     ignore under other platforms. Under Mac, it will change the size of
  2405.     the returned font. See `wx.Window.SetWindowVariant` for more about
  2406.     this.
  2407.     """
  2408.     return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs)
  2409.  
  2410. wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED
  2411. wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER
  2412. wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL
  2413. wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN
  2414.  
  2415. class TextUrlEvent(_core.CommandEvent):
  2416.     '''Proxy of C++ TextUrlEvent class'''
  2417.     
  2418.     def __repr__(self):
  2419.         return '<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2420.  
  2421.     
  2422.     def __init__(self, *args, **kwargs):
  2423.         '''__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent'''
  2424.         newobj = _controls_.new_TextUrlEvent(*args, **kwargs)
  2425.         self.this = newobj.this
  2426.         self.thisown = 1
  2427.         del newobj.thisown
  2428.  
  2429.     
  2430.     def GetMouseEvent(*args, **kwargs):
  2431.         '''GetMouseEvent(self) -> MouseEvent'''
  2432.         return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs)
  2433.  
  2434.     
  2435.     def GetURLStart(*args, **kwargs):
  2436.         '''GetURLStart(self) -> long'''
  2437.         return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs)
  2438.  
  2439.     
  2440.     def GetURLEnd(*args, **kwargs):
  2441.         '''GetURLEnd(self) -> long'''
  2442.         return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs)
  2443.  
  2444.  
  2445.  
  2446. class TextUrlEventPtr(TextUrlEvent):
  2447.     
  2448.     def __init__(self, this):
  2449.         self.this = this
  2450.         if not hasattr(self, 'thisown'):
  2451.             self.thisown = 0
  2452.         
  2453.         self.__class__ = TextUrlEvent
  2454.  
  2455.  
  2456. _controls_.TextUrlEvent_swigregister(TextUrlEventPtr)
  2457. EVT_TEXT = wx.PyEventBinder(wxEVT_COMMAND_TEXT_UPDATED, 1)
  2458. EVT_TEXT_ENTER = wx.PyEventBinder(wxEVT_COMMAND_TEXT_ENTER, 1)
  2459. EVT_TEXT_URL = wx.PyEventBinder(wxEVT_COMMAND_TEXT_URL, 1)
  2460. EVT_TEXT_MAXLEN = wx.PyEventBinder(wxEVT_COMMAND_TEXT_MAXLEN, 1)
  2461.  
  2462. class ScrollBar(_core.Control):
  2463.     '''Proxy of C++ ScrollBar class'''
  2464.     
  2465.     def __repr__(self):
  2466.         return '<%s.%s; proxy of C++ wxScrollBar instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2467.  
  2468.     
  2469.     def __init__(self, *args, **kwargs):
  2470.         '''
  2471.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  2472.             Size size=DefaultSize, long style=SB_HORIZONTAL, 
  2473.             Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
  2474.         '''
  2475.         newobj = _controls_.new_ScrollBar(*args, **kwargs)
  2476.         self.this = newobj.this
  2477.         self.thisown = 1
  2478.         del newobj.thisown
  2479.         self._setOORInfo(self)
  2480.  
  2481.     
  2482.     def Create(*args, **kwargs):
  2483.         '''
  2484.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  2485.             Size size=DefaultSize, long style=SB_HORIZONTAL, 
  2486.             Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
  2487.  
  2488.         Do the 2nd phase and create the GUI control.
  2489.         '''
  2490.         return _controls_.ScrollBar_Create(*args, **kwargs)
  2491.  
  2492.     
  2493.     def GetThumbPosition(*args, **kwargs):
  2494.         '''GetThumbPosition(self) -> int'''
  2495.         return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs)
  2496.  
  2497.     
  2498.     def GetThumbSize(*args, **kwargs):
  2499.         '''GetThumbSize(self) -> int'''
  2500.         return _controls_.ScrollBar_GetThumbSize(*args, **kwargs)
  2501.  
  2502.     GetThumbLength = GetThumbSize
  2503.     
  2504.     def GetPageSize(*args, **kwargs):
  2505.         '''GetPageSize(self) -> int'''
  2506.         return _controls_.ScrollBar_GetPageSize(*args, **kwargs)
  2507.  
  2508.     
  2509.     def GetRange(*args, **kwargs):
  2510.         '''GetRange(self) -> int'''
  2511.         return _controls_.ScrollBar_GetRange(*args, **kwargs)
  2512.  
  2513.     
  2514.     def IsVertical(*args, **kwargs):
  2515.         '''IsVertical(self) -> bool'''
  2516.         return _controls_.ScrollBar_IsVertical(*args, **kwargs)
  2517.  
  2518.     
  2519.     def SetThumbPosition(*args, **kwargs):
  2520.         '''SetThumbPosition(self, int viewStart)'''
  2521.         return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs)
  2522.  
  2523.     
  2524.     def SetScrollbar(*args, **kwargs):
  2525.         '''
  2526.         SetScrollbar(self, int position, int thumbSize, int range, int pageSize, 
  2527.             bool refresh=True)
  2528.         '''
  2529.         return _controls_.ScrollBar_SetScrollbar(*args, **kwargs)
  2530.  
  2531.     
  2532.     def GetClassDefaultAttributes(*args, **kwargs):
  2533.         """
  2534.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2535.  
  2536.         Get the default attributes for this class.  This is useful if you want
  2537.         to use the same font or colour in your own control as in a standard
  2538.         control -- which is a much better idea than hard coding specific
  2539.         colours or fonts which might look completely out of place on the
  2540.         user's system, especially if it uses themes.
  2541.  
  2542.         The variant parameter is only relevant under Mac currently and is
  2543.         ignore under other platforms. Under Mac, it will change the size of
  2544.         the returned font. See `wx.Window.SetWindowVariant` for more about
  2545.         this.
  2546.         """
  2547.         return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs)
  2548.  
  2549.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  2550.  
  2551.  
  2552. class ScrollBarPtr(ScrollBar):
  2553.     
  2554.     def __init__(self, this):
  2555.         self.this = this
  2556.         if not hasattr(self, 'thisown'):
  2557.             self.thisown = 0
  2558.         
  2559.         self.__class__ = ScrollBar
  2560.  
  2561.  
  2562. _controls_.ScrollBar_swigregister(ScrollBarPtr)
  2563. ScrollBarNameStr = cvar.ScrollBarNameStr
  2564.  
  2565. def PreScrollBar(*args, **kwargs):
  2566.     '''PreScrollBar() -> ScrollBar'''
  2567.     val = _controls_.new_PreScrollBar(*args, **kwargs)
  2568.     val.thisown = 1
  2569.     return val
  2570.  
  2571.  
  2572. def ScrollBar_GetClassDefaultAttributes(*args, **kwargs):
  2573.     """
  2574.     ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2575.  
  2576.     Get the default attributes for this class.  This is useful if you want
  2577.     to use the same font or colour in your own control as in a standard
  2578.     control -- which is a much better idea than hard coding specific
  2579.     colours or fonts which might look completely out of place on the
  2580.     user's system, especially if it uses themes.
  2581.  
  2582.     The variant parameter is only relevant under Mac currently and is
  2583.     ignore under other platforms. Under Mac, it will change the size of
  2584.     the returned font. See `wx.Window.SetWindowVariant` for more about
  2585.     this.
  2586.     """
  2587.     return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs)
  2588.  
  2589. SP_HORIZONTAL = _controls_.SP_HORIZONTAL
  2590. SP_VERTICAL = _controls_.SP_VERTICAL
  2591. SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS
  2592. SP_WRAP = _controls_.SP_WRAP
  2593.  
  2594. class SpinButton(_core.Control):
  2595.     '''Proxy of C++ SpinButton class'''
  2596.     
  2597.     def __repr__(self):
  2598.         return '<%s.%s; proxy of C++ wxSpinButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2599.  
  2600.     
  2601.     def __init__(self, *args, **kwargs):
  2602.         '''
  2603.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  2604.             Size size=DefaultSize, long style=SP_HORIZONTAL, 
  2605.             String name=SPIN_BUTTON_NAME) -> SpinButton
  2606.         '''
  2607.         newobj = _controls_.new_SpinButton(*args, **kwargs)
  2608.         self.this = newobj.this
  2609.         self.thisown = 1
  2610.         del newobj.thisown
  2611.         self._setOORInfo(self)
  2612.  
  2613.     
  2614.     def Create(*args, **kwargs):
  2615.         '''
  2616.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  2617.             Size size=DefaultSize, long style=SP_HORIZONTAL, 
  2618.             String name=SPIN_BUTTON_NAME) -> bool
  2619.         '''
  2620.         return _controls_.SpinButton_Create(*args, **kwargs)
  2621.  
  2622.     
  2623.     def GetValue(*args, **kwargs):
  2624.         '''GetValue(self) -> int'''
  2625.         return _controls_.SpinButton_GetValue(*args, **kwargs)
  2626.  
  2627.     
  2628.     def GetMin(*args, **kwargs):
  2629.         '''GetMin(self) -> int'''
  2630.         return _controls_.SpinButton_GetMin(*args, **kwargs)
  2631.  
  2632.     
  2633.     def GetMax(*args, **kwargs):
  2634.         '''GetMax(self) -> int'''
  2635.         return _controls_.SpinButton_GetMax(*args, **kwargs)
  2636.  
  2637.     
  2638.     def SetValue(*args, **kwargs):
  2639.         '''SetValue(self, int val)'''
  2640.         return _controls_.SpinButton_SetValue(*args, **kwargs)
  2641.  
  2642.     
  2643.     def SetMin(*args, **kwargs):
  2644.         '''SetMin(self, int minVal)'''
  2645.         return _controls_.SpinButton_SetMin(*args, **kwargs)
  2646.  
  2647.     
  2648.     def SetMax(*args, **kwargs):
  2649.         '''SetMax(self, int maxVal)'''
  2650.         return _controls_.SpinButton_SetMax(*args, **kwargs)
  2651.  
  2652.     
  2653.     def SetRange(*args, **kwargs):
  2654.         '''SetRange(self, int minVal, int maxVal)'''
  2655.         return _controls_.SpinButton_SetRange(*args, **kwargs)
  2656.  
  2657.     
  2658.     def IsVertical(*args, **kwargs):
  2659.         '''IsVertical(self) -> bool'''
  2660.         return _controls_.SpinButton_IsVertical(*args, **kwargs)
  2661.  
  2662.     
  2663.     def GetClassDefaultAttributes(*args, **kwargs):
  2664.         """
  2665.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2666.  
  2667.         Get the default attributes for this class.  This is useful if you want
  2668.         to use the same font or colour in your own control as in a standard
  2669.         control -- which is a much better idea than hard coding specific
  2670.         colours or fonts which might look completely out of place on the
  2671.         user's system, especially if it uses themes.
  2672.  
  2673.         The variant parameter is only relevant under Mac currently and is
  2674.         ignore under other platforms. Under Mac, it will change the size of
  2675.         the returned font. See `wx.Window.SetWindowVariant` for more about
  2676.         this.
  2677.         """
  2678.         return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs)
  2679.  
  2680.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  2681.  
  2682.  
  2683. class SpinButtonPtr(SpinButton):
  2684.     
  2685.     def __init__(self, this):
  2686.         self.this = this
  2687.         if not hasattr(self, 'thisown'):
  2688.             self.thisown = 0
  2689.         
  2690.         self.__class__ = SpinButton
  2691.  
  2692.  
  2693. _controls_.SpinButton_swigregister(SpinButtonPtr)
  2694. SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME
  2695. SpinCtrlNameStr = cvar.SpinCtrlNameStr
  2696.  
  2697. def PreSpinButton(*args, **kwargs):
  2698.     '''PreSpinButton() -> SpinButton'''
  2699.     val = _controls_.new_PreSpinButton(*args, **kwargs)
  2700.     val.thisown = 1
  2701.     return val
  2702.  
  2703.  
  2704. def SpinButton_GetClassDefaultAttributes(*args, **kwargs):
  2705.     """
  2706.     SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2707.  
  2708.     Get the default attributes for this class.  This is useful if you want
  2709.     to use the same font or colour in your own control as in a standard
  2710.     control -- which is a much better idea than hard coding specific
  2711.     colours or fonts which might look completely out of place on the
  2712.     user's system, especially if it uses themes.
  2713.  
  2714.     The variant parameter is only relevant under Mac currently and is
  2715.     ignore under other platforms. Under Mac, it will change the size of
  2716.     the returned font. See `wx.Window.SetWindowVariant` for more about
  2717.     this.
  2718.     """
  2719.     return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs)
  2720.  
  2721.  
  2722. class SpinCtrl(_core.Control):
  2723.     '''Proxy of C++ SpinCtrl class'''
  2724.     
  2725.     def __repr__(self):
  2726.         return '<%s.%s; proxy of C++ wxSpinCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2727.  
  2728.     
  2729.     def __init__(self, *args, **kwargs):
  2730.         '''
  2731.         __init__(self, Window parent, int id=-1, String value=EmptyString, 
  2732.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2733.             long style=SP_ARROW_KEYS, int min=0, int max=100, 
  2734.             int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
  2735.         '''
  2736.         newobj = _controls_.new_SpinCtrl(*args, **kwargs)
  2737.         self.this = newobj.this
  2738.         self.thisown = 1
  2739.         del newobj.thisown
  2740.         self._setOORInfo(self)
  2741.  
  2742.     
  2743.     def Create(*args, **kwargs):
  2744.         '''
  2745.         Create(self, Window parent, int id=-1, String value=EmptyString, 
  2746.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2747.             long style=SP_ARROW_KEYS, int min=0, int max=100, 
  2748.             int initial=0, String name=SpinCtrlNameStr) -> bool
  2749.         '''
  2750.         return _controls_.SpinCtrl_Create(*args, **kwargs)
  2751.  
  2752.     
  2753.     def GetValue(*args, **kwargs):
  2754.         '''GetValue(self) -> int'''
  2755.         return _controls_.SpinCtrl_GetValue(*args, **kwargs)
  2756.  
  2757.     
  2758.     def SetValue(*args, **kwargs):
  2759.         '''SetValue(self, int value)'''
  2760.         return _controls_.SpinCtrl_SetValue(*args, **kwargs)
  2761.  
  2762.     
  2763.     def SetValueString(*args, **kwargs):
  2764.         '''SetValueString(self, String text)'''
  2765.         return _controls_.SpinCtrl_SetValueString(*args, **kwargs)
  2766.  
  2767.     
  2768.     def SetRange(*args, **kwargs):
  2769.         '''SetRange(self, int minVal, int maxVal)'''
  2770.         return _controls_.SpinCtrl_SetRange(*args, **kwargs)
  2771.  
  2772.     
  2773.     def GetMin(*args, **kwargs):
  2774.         '''GetMin(self) -> int'''
  2775.         return _controls_.SpinCtrl_GetMin(*args, **kwargs)
  2776.  
  2777.     
  2778.     def GetMax(*args, **kwargs):
  2779.         '''GetMax(self) -> int'''
  2780.         return _controls_.SpinCtrl_GetMax(*args, **kwargs)
  2781.  
  2782.     
  2783.     def SetSelection(*args, **kwargs):
  2784.         '''SetSelection(self, long from, long to)'''
  2785.         return _controls_.SpinCtrl_SetSelection(*args, **kwargs)
  2786.  
  2787.     
  2788.     def GetClassDefaultAttributes(*args, **kwargs):
  2789.         """
  2790.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2791.  
  2792.         Get the default attributes for this class.  This is useful if you want
  2793.         to use the same font or colour in your own control as in a standard
  2794.         control -- which is a much better idea than hard coding specific
  2795.         colours or fonts which might look completely out of place on the
  2796.         user's system, especially if it uses themes.
  2797.  
  2798.         The variant parameter is only relevant under Mac currently and is
  2799.         ignore under other platforms. Under Mac, it will change the size of
  2800.         the returned font. See `wx.Window.SetWindowVariant` for more about
  2801.         this.
  2802.         """
  2803.         return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs)
  2804.  
  2805.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  2806.  
  2807.  
  2808. class SpinCtrlPtr(SpinCtrl):
  2809.     
  2810.     def __init__(self, this):
  2811.         self.this = this
  2812.         if not hasattr(self, 'thisown'):
  2813.             self.thisown = 0
  2814.         
  2815.         self.__class__ = SpinCtrl
  2816.  
  2817.  
  2818. _controls_.SpinCtrl_swigregister(SpinCtrlPtr)
  2819.  
  2820. def PreSpinCtrl(*args, **kwargs):
  2821.     '''PreSpinCtrl() -> SpinCtrl'''
  2822.     val = _controls_.new_PreSpinCtrl(*args, **kwargs)
  2823.     val.thisown = 1
  2824.     return val
  2825.  
  2826.  
  2827. def SpinCtrl_GetClassDefaultAttributes(*args, **kwargs):
  2828.     """
  2829.     SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2830.  
  2831.     Get the default attributes for this class.  This is useful if you want
  2832.     to use the same font or colour in your own control as in a standard
  2833.     control -- which is a much better idea than hard coding specific
  2834.     colours or fonts which might look completely out of place on the
  2835.     user's system, especially if it uses themes.
  2836.  
  2837.     The variant parameter is only relevant under Mac currently and is
  2838.     ignore under other platforms. Under Mac, it will change the size of
  2839.     the returned font. See `wx.Window.SetWindowVariant` for more about
  2840.     this.
  2841.     """
  2842.     return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs)
  2843.  
  2844.  
  2845. class SpinEvent(_core.NotifyEvent):
  2846.     '''Proxy of C++ SpinEvent class'''
  2847.     
  2848.     def __repr__(self):
  2849.         return '<%s.%s; proxy of C++ wxSpinEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2850.  
  2851.     
  2852.     def __init__(self, *args, **kwargs):
  2853.         '''__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent'''
  2854.         newobj = _controls_.new_SpinEvent(*args, **kwargs)
  2855.         self.this = newobj.this
  2856.         self.thisown = 1
  2857.         del newobj.thisown
  2858.  
  2859.     
  2860.     def GetPosition(*args, **kwargs):
  2861.         '''GetPosition(self) -> int'''
  2862.         return _controls_.SpinEvent_GetPosition(*args, **kwargs)
  2863.  
  2864.     
  2865.     def SetPosition(*args, **kwargs):
  2866.         '''SetPosition(self, int pos)'''
  2867.         return _controls_.SpinEvent_SetPosition(*args, **kwargs)
  2868.  
  2869.  
  2870.  
  2871. class SpinEventPtr(SpinEvent):
  2872.     
  2873.     def __init__(self, this):
  2874.         self.this = this
  2875.         if not hasattr(self, 'thisown'):
  2876.             self.thisown = 0
  2877.         
  2878.         self.__class__ = SpinEvent
  2879.  
  2880.  
  2881. _controls_.SpinEvent_swigregister(SpinEventPtr)
  2882. wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED
  2883. EVT_SPIN_UP = wx.PyEventBinder(wx.wxEVT_SCROLL_LINEUP, 1)
  2884. EVT_SPIN_DOWN = wx.PyEventBinder(wx.wxEVT_SCROLL_LINEDOWN, 1)
  2885. EVT_SPIN = wx.PyEventBinder(wx.wxEVT_SCROLL_THUMBTRACK, 1)
  2886. EVT_SPINCTRL = wx.PyEventBinder(wxEVT_COMMAND_SPINCTRL_UPDATED, 1)
  2887.  
  2888. class RadioBox(_core.Control):
  2889.     '''Proxy of C++ RadioBox class'''
  2890.     
  2891.     def __repr__(self):
  2892.         return '<%s.%s; proxy of C++ wxRadioBox instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2893.  
  2894.     
  2895.     def __init__(self, *args, **kwargs):
  2896.         '''
  2897.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  2898.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2899.             wxArrayString choices=wxPyEmptyStringArray, 
  2900.             int majorDimension=0, long style=RA_HORIZONTAL, 
  2901.             Validator validator=DefaultValidator, 
  2902.             String name=RadioBoxNameStr) -> RadioBox
  2903.         '''
  2904.         if kwargs.has_key('point'):
  2905.             kwargs['pos'] = kwargs['point']
  2906.             del kwargs['point']
  2907.         
  2908.         newobj = _controls_.new_RadioBox(*args, **kwargs)
  2909.         self.this = newobj.this
  2910.         self.thisown = 1
  2911.         del newobj.thisown
  2912.         self._setOORInfo(self)
  2913.  
  2914.     
  2915.     def Create(*args, **kwargs):
  2916.         '''
  2917.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  2918.             Point pos=DefaultPosition, Size size=DefaultSize, 
  2919.             wxArrayString choices=wxPyEmptyStringArray, 
  2920.             int majorDimension=0, long style=RA_HORIZONTAL, 
  2921.             Validator validator=DefaultValidator, 
  2922.             String name=RadioBoxNameStr) -> bool
  2923.         '''
  2924.         return _controls_.RadioBox_Create(*args, **kwargs)
  2925.  
  2926.     
  2927.     def SetSelection(*args, **kwargs):
  2928.         '''SetSelection(self, int n)'''
  2929.         return _controls_.RadioBox_SetSelection(*args, **kwargs)
  2930.  
  2931.     
  2932.     def GetSelection(*args, **kwargs):
  2933.         '''GetSelection(self) -> int'''
  2934.         return _controls_.RadioBox_GetSelection(*args, **kwargs)
  2935.  
  2936.     
  2937.     def GetStringSelection(*args, **kwargs):
  2938.         '''GetStringSelection(self) -> String'''
  2939.         return _controls_.RadioBox_GetStringSelection(*args, **kwargs)
  2940.  
  2941.     
  2942.     def SetStringSelection(*args, **kwargs):
  2943.         '''SetStringSelection(self, String s) -> bool'''
  2944.         return _controls_.RadioBox_SetStringSelection(*args, **kwargs)
  2945.  
  2946.     
  2947.     def GetCount(*args, **kwargs):
  2948.         '''GetCount(self) -> int'''
  2949.         return _controls_.RadioBox_GetCount(*args, **kwargs)
  2950.  
  2951.     
  2952.     def FindString(*args, **kwargs):
  2953.         '''FindString(self, String s) -> int'''
  2954.         return _controls_.RadioBox_FindString(*args, **kwargs)
  2955.  
  2956.     
  2957.     def GetString(*args, **kwargs):
  2958.         '''GetString(self, int n) -> String'''
  2959.         return _controls_.RadioBox_GetString(*args, **kwargs)
  2960.  
  2961.     
  2962.     def SetString(*args, **kwargs):
  2963.         '''SetString(self, int n, String label)'''
  2964.         return _controls_.RadioBox_SetString(*args, **kwargs)
  2965.  
  2966.     GetItemLabel = GetString
  2967.     SetItemLabel = SetString
  2968.     
  2969.     def EnableItem(*args, **kwargs):
  2970.         '''EnableItem(self, int n, bool enable=True)'''
  2971.         return _controls_.RadioBox_EnableItem(*args, **kwargs)
  2972.  
  2973.     
  2974.     def ShowItem(*args, **kwargs):
  2975.         '''ShowItem(self, int n, bool show=True)'''
  2976.         return _controls_.RadioBox_ShowItem(*args, **kwargs)
  2977.  
  2978.     
  2979.     def GetColumnCount(*args, **kwargs):
  2980.         '''GetColumnCount(self) -> int'''
  2981.         return _controls_.RadioBox_GetColumnCount(*args, **kwargs)
  2982.  
  2983.     
  2984.     def GetRowCount(*args, **kwargs):
  2985.         '''GetRowCount(self) -> int'''
  2986.         return _controls_.RadioBox_GetRowCount(*args, **kwargs)
  2987.  
  2988.     
  2989.     def GetNextItem(*args, **kwargs):
  2990.         '''GetNextItem(self, int item, int dir, long style) -> int'''
  2991.         return _controls_.RadioBox_GetNextItem(*args, **kwargs)
  2992.  
  2993.     
  2994.     def GetClassDefaultAttributes(*args, **kwargs):
  2995.         """
  2996.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  2997.  
  2998.         Get the default attributes for this class.  This is useful if you want
  2999.         to use the same font or colour in your own control as in a standard
  3000.         control -- which is a much better idea than hard coding specific
  3001.         colours or fonts which might look completely out of place on the
  3002.         user's system, especially if it uses themes.
  3003.  
  3004.         The variant parameter is only relevant under Mac currently and is
  3005.         ignore under other platforms. Under Mac, it will change the size of
  3006.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3007.         this.
  3008.         """
  3009.         return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs)
  3010.  
  3011.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3012.  
  3013.  
  3014. class RadioBoxPtr(RadioBox):
  3015.     
  3016.     def __init__(self, this):
  3017.         self.this = this
  3018.         if not hasattr(self, 'thisown'):
  3019.             self.thisown = 0
  3020.         
  3021.         self.__class__ = RadioBox
  3022.  
  3023.  
  3024. _controls_.RadioBox_swigregister(RadioBoxPtr)
  3025. RadioBoxNameStr = cvar.RadioBoxNameStr
  3026. RadioButtonNameStr = cvar.RadioButtonNameStr
  3027.  
  3028. def PreRadioBox(*args, **kwargs):
  3029.     '''PreRadioBox() -> RadioBox'''
  3030.     val = _controls_.new_PreRadioBox(*args, **kwargs)
  3031.     val.thisown = 1
  3032.     return val
  3033.  
  3034.  
  3035. def RadioBox_GetClassDefaultAttributes(*args, **kwargs):
  3036.     """
  3037.     RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3038.  
  3039.     Get the default attributes for this class.  This is useful if you want
  3040.     to use the same font or colour in your own control as in a standard
  3041.     control -- which is a much better idea than hard coding specific
  3042.     colours or fonts which might look completely out of place on the
  3043.     user's system, especially if it uses themes.
  3044.  
  3045.     The variant parameter is only relevant under Mac currently and is
  3046.     ignore under other platforms. Under Mac, it will change the size of
  3047.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3048.     this.
  3049.     """
  3050.     return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs)
  3051.  
  3052.  
  3053. class RadioButton(_core.Control):
  3054.     '''Proxy of C++ RadioButton class'''
  3055.     
  3056.     def __repr__(self):
  3057.         return '<%s.%s; proxy of C++ wxRadioButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3058.  
  3059.     
  3060.     def __init__(self, *args, **kwargs):
  3061.         '''
  3062.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  3063.             Point pos=DefaultPosition, Size size=DefaultSize, 
  3064.             long style=0, Validator validator=DefaultValidator, 
  3065.             String name=RadioButtonNameStr) -> RadioButton
  3066.         '''
  3067.         newobj = _controls_.new_RadioButton(*args, **kwargs)
  3068.         self.this = newobj.this
  3069.         self.thisown = 1
  3070.         del newobj.thisown
  3071.         self._setOORInfo(self)
  3072.  
  3073.     
  3074.     def Create(*args, **kwargs):
  3075.         '''
  3076.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  3077.             Point pos=DefaultPosition, Size size=DefaultSize, 
  3078.             long style=0, Validator validator=DefaultValidator, 
  3079.             String name=RadioButtonNameStr) -> bool
  3080.         '''
  3081.         return _controls_.RadioButton_Create(*args, **kwargs)
  3082.  
  3083.     
  3084.     def GetValue(*args, **kwargs):
  3085.         '''GetValue(self) -> bool'''
  3086.         return _controls_.RadioButton_GetValue(*args, **kwargs)
  3087.  
  3088.     
  3089.     def SetValue(*args, **kwargs):
  3090.         '''SetValue(self, bool value)'''
  3091.         return _controls_.RadioButton_SetValue(*args, **kwargs)
  3092.  
  3093.     
  3094.     def GetClassDefaultAttributes(*args, **kwargs):
  3095.         """
  3096.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3097.  
  3098.         Get the default attributes for this class.  This is useful if you want
  3099.         to use the same font or colour in your own control as in a standard
  3100.         control -- which is a much better idea than hard coding specific
  3101.         colours or fonts which might look completely out of place on the
  3102.         user's system, especially if it uses themes.
  3103.  
  3104.         The variant parameter is only relevant under Mac currently and is
  3105.         ignore under other platforms. Under Mac, it will change the size of
  3106.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3107.         this.
  3108.         """
  3109.         return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs)
  3110.  
  3111.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3112.  
  3113.  
  3114. class RadioButtonPtr(RadioButton):
  3115.     
  3116.     def __init__(self, this):
  3117.         self.this = this
  3118.         if not hasattr(self, 'thisown'):
  3119.             self.thisown = 0
  3120.         
  3121.         self.__class__ = RadioButton
  3122.  
  3123.  
  3124. _controls_.RadioButton_swigregister(RadioButtonPtr)
  3125.  
  3126. def PreRadioButton(*args, **kwargs):
  3127.     '''PreRadioButton() -> RadioButton'''
  3128.     val = _controls_.new_PreRadioButton(*args, **kwargs)
  3129.     val.thisown = 1
  3130.     return val
  3131.  
  3132.  
  3133. def RadioButton_GetClassDefaultAttributes(*args, **kwargs):
  3134.     """
  3135.     RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3136.  
  3137.     Get the default attributes for this class.  This is useful if you want
  3138.     to use the same font or colour in your own control as in a standard
  3139.     control -- which is a much better idea than hard coding specific
  3140.     colours or fonts which might look completely out of place on the
  3141.     user's system, especially if it uses themes.
  3142.  
  3143.     The variant parameter is only relevant under Mac currently and is
  3144.     ignore under other platforms. Under Mac, it will change the size of
  3145.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3146.     this.
  3147.     """
  3148.     return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs)
  3149.  
  3150. SL_HORIZONTAL = _controls_.SL_HORIZONTAL
  3151. SL_VERTICAL = _controls_.SL_VERTICAL
  3152. SL_TICKS = _controls_.SL_TICKS
  3153. SL_AUTOTICKS = _controls_.SL_AUTOTICKS
  3154. SL_LABELS = _controls_.SL_LABELS
  3155. SL_LEFT = _controls_.SL_LEFT
  3156. SL_TOP = _controls_.SL_TOP
  3157. SL_RIGHT = _controls_.SL_RIGHT
  3158. SL_BOTTOM = _controls_.SL_BOTTOM
  3159. SL_BOTH = _controls_.SL_BOTH
  3160. SL_SELRANGE = _controls_.SL_SELRANGE
  3161. SL_INVERSE = _controls_.SL_INVERSE
  3162.  
  3163. class Slider(_core.Control):
  3164.     '''Proxy of C++ Slider class'''
  3165.     
  3166.     def __repr__(self):
  3167.         return '<%s.%s; proxy of C++ wxSlider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3168.  
  3169.     
  3170.     def __init__(self, *args, **kwargs):
  3171.         '''
  3172.         __init__(self, Window parent, int id=-1, int value=0, int minValue=0, 
  3173.             int maxValue=100, Point pos=DefaultPosition, 
  3174.             Size size=DefaultSize, long style=SL_HORIZONTAL, 
  3175.             Validator validator=DefaultValidator, 
  3176.             String name=SliderNameStr) -> Slider
  3177.         '''
  3178.         if kwargs.has_key('point'):
  3179.             kwargs['pos'] = kwargs['point']
  3180.             del kwargs['point']
  3181.         
  3182.         newobj = _controls_.new_Slider(*args, **kwargs)
  3183.         self.this = newobj.this
  3184.         self.thisown = 1
  3185.         del newobj.thisown
  3186.         self._setOORInfo(self)
  3187.  
  3188.     
  3189.     def Create(*args, **kwargs):
  3190.         '''
  3191.         Create(self, Window parent, int id=-1, int value=0, int minValue=0, 
  3192.             int maxValue=100, Point pos=DefaultPosition, 
  3193.             Size size=DefaultSize, long style=SL_HORIZONTAL, 
  3194.             Validator validator=DefaultValidator, 
  3195.             String name=SliderNameStr) -> bool
  3196.         '''
  3197.         return _controls_.Slider_Create(*args, **kwargs)
  3198.  
  3199.     
  3200.     def GetValue(*args, **kwargs):
  3201.         '''GetValue(self) -> int'''
  3202.         return _controls_.Slider_GetValue(*args, **kwargs)
  3203.  
  3204.     
  3205.     def SetValue(*args, **kwargs):
  3206.         '''SetValue(self, int value)'''
  3207.         return _controls_.Slider_SetValue(*args, **kwargs)
  3208.  
  3209.     
  3210.     def SetRange(*args, **kwargs):
  3211.         '''SetRange(self, int minValue, int maxValue)'''
  3212.         return _controls_.Slider_SetRange(*args, **kwargs)
  3213.  
  3214.     
  3215.     def GetMin(*args, **kwargs):
  3216.         '''GetMin(self) -> int'''
  3217.         return _controls_.Slider_GetMin(*args, **kwargs)
  3218.  
  3219.     
  3220.     def GetMax(*args, **kwargs):
  3221.         '''GetMax(self) -> int'''
  3222.         return _controls_.Slider_GetMax(*args, **kwargs)
  3223.  
  3224.     
  3225.     def SetMin(*args, **kwargs):
  3226.         '''SetMin(self, int minValue)'''
  3227.         return _controls_.Slider_SetMin(*args, **kwargs)
  3228.  
  3229.     
  3230.     def SetMax(*args, **kwargs):
  3231.         '''SetMax(self, int maxValue)'''
  3232.         return _controls_.Slider_SetMax(*args, **kwargs)
  3233.  
  3234.     
  3235.     def SetLineSize(*args, **kwargs):
  3236.         '''SetLineSize(self, int lineSize)'''
  3237.         return _controls_.Slider_SetLineSize(*args, **kwargs)
  3238.  
  3239.     
  3240.     def SetPageSize(*args, **kwargs):
  3241.         '''SetPageSize(self, int pageSize)'''
  3242.         return _controls_.Slider_SetPageSize(*args, **kwargs)
  3243.  
  3244.     
  3245.     def GetLineSize(*args, **kwargs):
  3246.         '''GetLineSize(self) -> int'''
  3247.         return _controls_.Slider_GetLineSize(*args, **kwargs)
  3248.  
  3249.     
  3250.     def GetPageSize(*args, **kwargs):
  3251.         '''GetPageSize(self) -> int'''
  3252.         return _controls_.Slider_GetPageSize(*args, **kwargs)
  3253.  
  3254.     
  3255.     def SetThumbLength(*args, **kwargs):
  3256.         '''SetThumbLength(self, int lenPixels)'''
  3257.         return _controls_.Slider_SetThumbLength(*args, **kwargs)
  3258.  
  3259.     
  3260.     def GetThumbLength(*args, **kwargs):
  3261.         '''GetThumbLength(self) -> int'''
  3262.         return _controls_.Slider_GetThumbLength(*args, **kwargs)
  3263.  
  3264.     
  3265.     def SetTickFreq(*args, **kwargs):
  3266.         '''SetTickFreq(self, int n, int pos=1)'''
  3267.         return _controls_.Slider_SetTickFreq(*args, **kwargs)
  3268.  
  3269.     
  3270.     def GetTickFreq(*args, **kwargs):
  3271.         '''GetTickFreq(self) -> int'''
  3272.         return _controls_.Slider_GetTickFreq(*args, **kwargs)
  3273.  
  3274.     
  3275.     def ClearTicks(*args, **kwargs):
  3276.         '''ClearTicks(self)'''
  3277.         return _controls_.Slider_ClearTicks(*args, **kwargs)
  3278.  
  3279.     
  3280.     def SetTick(*args, **kwargs):
  3281.         '''SetTick(self, int tickPos)'''
  3282.         return _controls_.Slider_SetTick(*args, **kwargs)
  3283.  
  3284.     
  3285.     def ClearSel(*args, **kwargs):
  3286.         '''ClearSel(self)'''
  3287.         return _controls_.Slider_ClearSel(*args, **kwargs)
  3288.  
  3289.     
  3290.     def GetSelEnd(*args, **kwargs):
  3291.         '''GetSelEnd(self) -> int'''
  3292.         return _controls_.Slider_GetSelEnd(*args, **kwargs)
  3293.  
  3294.     
  3295.     def GetSelStart(*args, **kwargs):
  3296.         '''GetSelStart(self) -> int'''
  3297.         return _controls_.Slider_GetSelStart(*args, **kwargs)
  3298.  
  3299.     
  3300.     def SetSelection(*args, **kwargs):
  3301.         '''SetSelection(self, int min, int max)'''
  3302.         return _controls_.Slider_SetSelection(*args, **kwargs)
  3303.  
  3304.     
  3305.     def GetClassDefaultAttributes(*args, **kwargs):
  3306.         """
  3307.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3308.  
  3309.         Get the default attributes for this class.  This is useful if you want
  3310.         to use the same font or colour in your own control as in a standard
  3311.         control -- which is a much better idea than hard coding specific
  3312.         colours or fonts which might look completely out of place on the
  3313.         user's system, especially if it uses themes.
  3314.  
  3315.         The variant parameter is only relevant under Mac currently and is
  3316.         ignore under other platforms. Under Mac, it will change the size of
  3317.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3318.         this.
  3319.         """
  3320.         return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs)
  3321.  
  3322.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3323.  
  3324.  
  3325. class SliderPtr(Slider):
  3326.     
  3327.     def __init__(self, this):
  3328.         self.this = this
  3329.         if not hasattr(self, 'thisown'):
  3330.             self.thisown = 0
  3331.         
  3332.         self.__class__ = Slider
  3333.  
  3334.  
  3335. _controls_.Slider_swigregister(SliderPtr)
  3336. SliderNameStr = cvar.SliderNameStr
  3337.  
  3338. def PreSlider(*args, **kwargs):
  3339.     '''PreSlider() -> Slider'''
  3340.     val = _controls_.new_PreSlider(*args, **kwargs)
  3341.     val.thisown = 1
  3342.     return val
  3343.  
  3344.  
  3345. def Slider_GetClassDefaultAttributes(*args, **kwargs):
  3346.     """
  3347.     Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3348.  
  3349.     Get the default attributes for this class.  This is useful if you want
  3350.     to use the same font or colour in your own control as in a standard
  3351.     control -- which is a much better idea than hard coding specific
  3352.     colours or fonts which might look completely out of place on the
  3353.     user's system, especially if it uses themes.
  3354.  
  3355.     The variant parameter is only relevant under Mac currently and is
  3356.     ignore under other platforms. Under Mac, it will change the size of
  3357.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3358.     this.
  3359.     """
  3360.     return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs)
  3361.  
  3362. wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
  3363. EVT_TOGGLEBUTTON = wx.PyEventBinder(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1)
  3364.  
  3365. class ToggleButton(_core.Control):
  3366.     '''Proxy of C++ ToggleButton class'''
  3367.     
  3368.     def __repr__(self):
  3369.         return '<%s.%s; proxy of C++ wxToggleButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3370.  
  3371.     
  3372.     def __init__(self, *args, **kwargs):
  3373.         '''
  3374.         __init__(self, Window parent, int id=-1, String label=EmptyString, 
  3375.             Point pos=DefaultPosition, Size size=DefaultSize, 
  3376.             long style=0, Validator validator=DefaultValidator, 
  3377.             String name=ToggleButtonNameStr) -> ToggleButton
  3378.         '''
  3379.         newobj = _controls_.new_ToggleButton(*args, **kwargs)
  3380.         self.this = newobj.this
  3381.         self.thisown = 1
  3382.         del newobj.thisown
  3383.         self._setOORInfo(self)
  3384.  
  3385.     
  3386.     def Create(*args, **kwargs):
  3387.         '''
  3388.         Create(self, Window parent, int id=-1, String label=EmptyString, 
  3389.             Point pos=DefaultPosition, Size size=DefaultSize, 
  3390.             long style=0, Validator validator=DefaultValidator, 
  3391.             String name=ToggleButtonNameStr) -> bool
  3392.         '''
  3393.         return _controls_.ToggleButton_Create(*args, **kwargs)
  3394.  
  3395.     
  3396.     def SetValue(*args, **kwargs):
  3397.         '''SetValue(self, bool value)'''
  3398.         return _controls_.ToggleButton_SetValue(*args, **kwargs)
  3399.  
  3400.     
  3401.     def GetValue(*args, **kwargs):
  3402.         '''GetValue(self) -> bool'''
  3403.         return _controls_.ToggleButton_GetValue(*args, **kwargs)
  3404.  
  3405.     
  3406.     def SetLabel(*args, **kwargs):
  3407.         """
  3408.         SetLabel(self, String label)
  3409.  
  3410.         Sets the item's text.
  3411.         """
  3412.         return _controls_.ToggleButton_SetLabel(*args, **kwargs)
  3413.  
  3414.     
  3415.     def GetClassDefaultAttributes(*args, **kwargs):
  3416.         """
  3417.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3418.  
  3419.         Get the default attributes for this class.  This is useful if you want
  3420.         to use the same font or colour in your own control as in a standard
  3421.         control -- which is a much better idea than hard coding specific
  3422.         colours or fonts which might look completely out of place on the
  3423.         user's system, especially if it uses themes.
  3424.  
  3425.         The variant parameter is only relevant under Mac currently and is
  3426.         ignore under other platforms. Under Mac, it will change the size of
  3427.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3428.         this.
  3429.         """
  3430.         return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs)
  3431.  
  3432.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3433.  
  3434.  
  3435. class ToggleButtonPtr(ToggleButton):
  3436.     
  3437.     def __init__(self, this):
  3438.         self.this = this
  3439.         if not hasattr(self, 'thisown'):
  3440.             self.thisown = 0
  3441.         
  3442.         self.__class__ = ToggleButton
  3443.  
  3444.  
  3445. _controls_.ToggleButton_swigregister(ToggleButtonPtr)
  3446. ToggleButtonNameStr = cvar.ToggleButtonNameStr
  3447.  
  3448. def PreToggleButton(*args, **kwargs):
  3449.     '''PreToggleButton() -> ToggleButton'''
  3450.     val = _controls_.new_PreToggleButton(*args, **kwargs)
  3451.     val.thisown = 1
  3452.     return val
  3453.  
  3454.  
  3455. def ToggleButton_GetClassDefaultAttributes(*args, **kwargs):
  3456.     """
  3457.     ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3458.  
  3459.     Get the default attributes for this class.  This is useful if you want
  3460.     to use the same font or colour in your own control as in a standard
  3461.     control -- which is a much better idea than hard coding specific
  3462.     colours or fonts which might look completely out of place on the
  3463.     user's system, especially if it uses themes.
  3464.  
  3465.     The variant parameter is only relevant under Mac currently and is
  3466.     ignore under other platforms. Under Mac, it will change the size of
  3467.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3468.     this.
  3469.     """
  3470.     return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs)
  3471.  
  3472.  
  3473. class BookCtrlBase(_core.Control):
  3474.     '''Proxy of C++ BookCtrlBase class'''
  3475.     
  3476.     def __init__(self):
  3477.         raise RuntimeError, 'No constructor defined'
  3478.  
  3479.     
  3480.     def __repr__(self):
  3481.         return '<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3482.  
  3483.     
  3484.     def GetPageCount(*args, **kwargs):
  3485.         '''GetPageCount(self) -> size_t'''
  3486.         return _controls_.BookCtrlBase_GetPageCount(*args, **kwargs)
  3487.  
  3488.     
  3489.     def GetPage(*args, **kwargs):
  3490.         '''GetPage(self, size_t n) -> Window'''
  3491.         return _controls_.BookCtrlBase_GetPage(*args, **kwargs)
  3492.  
  3493.     
  3494.     def GetCurrentPage(*args, **kwargs):
  3495.         '''GetCurrentPage(self) -> Window'''
  3496.         return _controls_.BookCtrlBase_GetCurrentPage(*args, **kwargs)
  3497.  
  3498.     
  3499.     def GetSelection(*args, **kwargs):
  3500.         '''GetSelection(self) -> int'''
  3501.         return _controls_.BookCtrlBase_GetSelection(*args, **kwargs)
  3502.  
  3503.     
  3504.     def SetPageText(*args, **kwargs):
  3505.         '''SetPageText(self, size_t n, String strText) -> bool'''
  3506.         return _controls_.BookCtrlBase_SetPageText(*args, **kwargs)
  3507.  
  3508.     
  3509.     def GetPageText(*args, **kwargs):
  3510.         '''GetPageText(self, size_t n) -> String'''
  3511.         return _controls_.BookCtrlBase_GetPageText(*args, **kwargs)
  3512.  
  3513.     
  3514.     def SetImageList(*args, **kwargs):
  3515.         '''SetImageList(self, ImageList imageList)'''
  3516.         return _controls_.BookCtrlBase_SetImageList(*args, **kwargs)
  3517.  
  3518.     
  3519.     def AssignImageList(*args, **kwargs):
  3520.         '''AssignImageList(self, ImageList imageList)'''
  3521.         return _controls_.BookCtrlBase_AssignImageList(*args, **kwargs)
  3522.  
  3523.     
  3524.     def GetImageList(*args, **kwargs):
  3525.         '''GetImageList(self) -> ImageList'''
  3526.         return _controls_.BookCtrlBase_GetImageList(*args, **kwargs)
  3527.  
  3528.     
  3529.     def GetPageImage(*args, **kwargs):
  3530.         '''GetPageImage(self, size_t n) -> int'''
  3531.         return _controls_.BookCtrlBase_GetPageImage(*args, **kwargs)
  3532.  
  3533.     
  3534.     def SetPageImage(*args, **kwargs):
  3535.         '''SetPageImage(self, size_t n, int imageId) -> bool'''
  3536.         return _controls_.BookCtrlBase_SetPageImage(*args, **kwargs)
  3537.  
  3538.     
  3539.     def SetPageSize(*args, **kwargs):
  3540.         '''SetPageSize(self, Size size)'''
  3541.         return _controls_.BookCtrlBase_SetPageSize(*args, **kwargs)
  3542.  
  3543.     
  3544.     def CalcSizeFromPage(*args, **kwargs):
  3545.         '''CalcSizeFromPage(self, Size sizePage) -> Size'''
  3546.         return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
  3547.  
  3548.     
  3549.     def DeletePage(*args, **kwargs):
  3550.         '''DeletePage(self, size_t n) -> bool'''
  3551.         return _controls_.BookCtrlBase_DeletePage(*args, **kwargs)
  3552.  
  3553.     
  3554.     def RemovePage(*args, **kwargs):
  3555.         '''RemovePage(self, size_t n) -> bool'''
  3556.         return _controls_.BookCtrlBase_RemovePage(*args, **kwargs)
  3557.  
  3558.     
  3559.     def DeleteAllPages(*args, **kwargs):
  3560.         '''DeleteAllPages(self) -> bool'''
  3561.         return _controls_.BookCtrlBase_DeleteAllPages(*args, **kwargs)
  3562.  
  3563.     
  3564.     def AddPage(*args, **kwargs):
  3565.         '''AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool'''
  3566.         return _controls_.BookCtrlBase_AddPage(*args, **kwargs)
  3567.  
  3568.     
  3569.     def InsertPage(*args, **kwargs):
  3570.         '''
  3571.         InsertPage(self, size_t n, Window page, String text, bool select=False, 
  3572.             int imageId=-1) -> bool
  3573.         '''
  3574.         return _controls_.BookCtrlBase_InsertPage(*args, **kwargs)
  3575.  
  3576.     
  3577.     def SetSelection(*args, **kwargs):
  3578.         '''SetSelection(self, size_t n) -> int'''
  3579.         return _controls_.BookCtrlBase_SetSelection(*args, **kwargs)
  3580.  
  3581.     
  3582.     def AdvanceSelection(*args, **kwargs):
  3583.         '''AdvanceSelection(self, bool forward=True)'''
  3584.         return _controls_.BookCtrlBase_AdvanceSelection(*args, **kwargs)
  3585.  
  3586.     
  3587.     def GetClassDefaultAttributes(*args, **kwargs):
  3588.         """
  3589.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3590.  
  3591.         Get the default attributes for this class.  This is useful if you want
  3592.         to use the same font or colour in your own control as in a standard
  3593.         control -- which is a much better idea than hard coding specific
  3594.         colours or fonts which might look completely out of place on the
  3595.         user's system, especially if it uses themes.
  3596.  
  3597.         The variant parameter is only relevant under Mac currently and is
  3598.         ignore under other platforms. Under Mac, it will change the size of
  3599.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3600.         this.
  3601.         """
  3602.         return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs)
  3603.  
  3604.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3605.  
  3606.  
  3607. class BookCtrlBasePtr(BookCtrlBase):
  3608.     
  3609.     def __init__(self, this):
  3610.         self.this = this
  3611.         if not hasattr(self, 'thisown'):
  3612.             self.thisown = 0
  3613.         
  3614.         self.__class__ = BookCtrlBase
  3615.  
  3616.  
  3617. _controls_.BookCtrlBase_swigregister(BookCtrlBasePtr)
  3618. NotebookNameStr = cvar.NotebookNameStr
  3619.  
  3620. def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs):
  3621.     """
  3622.     BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3623.  
  3624.     Get the default attributes for this class.  This is useful if you want
  3625.     to use the same font or colour in your own control as in a standard
  3626.     control -- which is a much better idea than hard coding specific
  3627.     colours or fonts which might look completely out of place on the
  3628.     user's system, especially if it uses themes.
  3629.  
  3630.     The variant parameter is only relevant under Mac currently and is
  3631.     ignore under other platforms. Under Mac, it will change the size of
  3632.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3633.     this.
  3634.     """
  3635.     return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs)
  3636.  
  3637.  
  3638. class BookCtrlBaseEvent(_core.NotifyEvent):
  3639.     '''Proxy of C++ BookCtrlBaseEvent class'''
  3640.     
  3641.     def __repr__(self):
  3642.         return '<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3643.  
  3644.     
  3645.     def __init__(self, *args, **kwargs):
  3646.         '''
  3647.         __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, 
  3648.             int nOldSel=-1) -> BookCtrlBaseEvent
  3649.         '''
  3650.         newobj = _controls_.new_BookCtrlBaseEvent(*args, **kwargs)
  3651.         self.this = newobj.this
  3652.         self.thisown = 1
  3653.         del newobj.thisown
  3654.  
  3655.     
  3656.     def GetSelection(*args, **kwargs):
  3657.         '''
  3658.         GetSelection(self) -> int
  3659.  
  3660.         Returns item index for a listbox or choice selection event (not valid
  3661.         for a deselection).
  3662.         '''
  3663.         return _controls_.BookCtrlBaseEvent_GetSelection(*args, **kwargs)
  3664.  
  3665.     
  3666.     def SetSelection(*args, **kwargs):
  3667.         '''SetSelection(self, int nSel)'''
  3668.         return _controls_.BookCtrlBaseEvent_SetSelection(*args, **kwargs)
  3669.  
  3670.     
  3671.     def GetOldSelection(*args, **kwargs):
  3672.         '''GetOldSelection(self) -> int'''
  3673.         return _controls_.BookCtrlBaseEvent_GetOldSelection(*args, **kwargs)
  3674.  
  3675.     
  3676.     def SetOldSelection(*args, **kwargs):
  3677.         '''SetOldSelection(self, int nOldSel)'''
  3678.         return _controls_.BookCtrlBaseEvent_SetOldSelection(*args, **kwargs)
  3679.  
  3680.  
  3681.  
  3682. class BookCtrlBaseEventPtr(BookCtrlBaseEvent):
  3683.     
  3684.     def __init__(self, this):
  3685.         self.this = this
  3686.         if not hasattr(self, 'thisown'):
  3687.             self.thisown = 0
  3688.         
  3689.         self.__class__ = BookCtrlBaseEvent
  3690.  
  3691.  
  3692. _controls_.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr)
  3693. NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH
  3694. NB_TOP = _controls_.NB_TOP
  3695. NB_LEFT = _controls_.NB_LEFT
  3696. NB_RIGHT = _controls_.NB_RIGHT
  3697. NB_BOTTOM = _controls_.NB_BOTTOM
  3698. NB_MULTILINE = _controls_.NB_MULTILINE
  3699. NB_NOPAGETHEME = _controls_.NB_NOPAGETHEME
  3700. NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE
  3701. NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON
  3702. NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL
  3703. NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM
  3704.  
  3705. class Notebook(BookCtrlBase):
  3706.     '''Proxy of C++ Notebook class'''
  3707.     
  3708.     def __repr__(self):
  3709.         return '<%s.%s; proxy of C++ wxNotebook instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3710.  
  3711.     
  3712.     def __init__(self, *args, **kwargs):
  3713.         '''
  3714.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  3715.             Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
  3716.         '''
  3717.         newobj = _controls_.new_Notebook(*args, **kwargs)
  3718.         self.this = newobj.this
  3719.         self.thisown = 1
  3720.         del newobj.thisown
  3721.         self._setOORInfo(self)
  3722.  
  3723.     
  3724.     def Create(*args, **kwargs):
  3725.         '''
  3726.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  3727.             Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
  3728.         '''
  3729.         return _controls_.Notebook_Create(*args, **kwargs)
  3730.  
  3731.     
  3732.     def GetRowCount(*args, **kwargs):
  3733.         '''GetRowCount(self) -> int'''
  3734.         return _controls_.Notebook_GetRowCount(*args, **kwargs)
  3735.  
  3736.     
  3737.     def SetPadding(*args, **kwargs):
  3738.         '''SetPadding(self, Size padding)'''
  3739.         return _controls_.Notebook_SetPadding(*args, **kwargs)
  3740.  
  3741.     
  3742.     def SetTabSize(*args, **kwargs):
  3743.         '''SetTabSize(self, Size sz)'''
  3744.         return _controls_.Notebook_SetTabSize(*args, **kwargs)
  3745.  
  3746.     
  3747.     def HitTest(*args, **kwargs):
  3748.         '''
  3749.         HitTest(Point pt) -> (tab, where)
  3750.  
  3751.         Returns the tab which is hit, and flags indicating where using
  3752.         wx.NB_HITTEST flags.
  3753.         '''
  3754.         return _controls_.Notebook_HitTest(*args, **kwargs)
  3755.  
  3756.     
  3757.     def CalcSizeFromPage(*args, **kwargs):
  3758.         '''CalcSizeFromPage(self, Size sizePage) -> Size'''
  3759.         return _controls_.Notebook_CalcSizeFromPage(*args, **kwargs)
  3760.  
  3761.     
  3762.     def GetThemeBackgroundColour(*args, **kwargs):
  3763.         '''GetThemeBackgroundColour(self) -> Colour'''
  3764.         return _controls_.Notebook_GetThemeBackgroundColour(*args, **kwargs)
  3765.  
  3766.     
  3767.     def GetClassDefaultAttributes(*args, **kwargs):
  3768.         """
  3769.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3770.  
  3771.         Get the default attributes for this class.  This is useful if you want
  3772.         to use the same font or colour in your own control as in a standard
  3773.         control -- which is a much better idea than hard coding specific
  3774.         colours or fonts which might look completely out of place on the
  3775.         user's system, especially if it uses themes.
  3776.  
  3777.         The variant parameter is only relevant under Mac currently and is
  3778.         ignore under other platforms. Under Mac, it will change the size of
  3779.         the returned font. See `wx.Window.SetWindowVariant` for more about
  3780.         this.
  3781.         """
  3782.         return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs)
  3783.  
  3784.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  3785.  
  3786.  
  3787. class NotebookPtr(Notebook):
  3788.     
  3789.     def __init__(self, this):
  3790.         self.this = this
  3791.         if not hasattr(self, 'thisown'):
  3792.             self.thisown = 0
  3793.         
  3794.         self.__class__ = Notebook
  3795.  
  3796.  
  3797. _controls_.Notebook_swigregister(NotebookPtr)
  3798.  
  3799. def PreNotebook(*args, **kwargs):
  3800.     '''PreNotebook() -> Notebook'''
  3801.     val = _controls_.new_PreNotebook(*args, **kwargs)
  3802.     val.thisown = 1
  3803.     return val
  3804.  
  3805.  
  3806. def Notebook_GetClassDefaultAttributes(*args, **kwargs):
  3807.     """
  3808.     Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  3809.  
  3810.     Get the default attributes for this class.  This is useful if you want
  3811.     to use the same font or colour in your own control as in a standard
  3812.     control -- which is a much better idea than hard coding specific
  3813.     colours or fonts which might look completely out of place on the
  3814.     user's system, especially if it uses themes.
  3815.  
  3816.     The variant parameter is only relevant under Mac currently and is
  3817.     ignore under other platforms. Under Mac, it will change the size of
  3818.     the returned font. See `wx.Window.SetWindowVariant` for more about
  3819.     this.
  3820.     """
  3821.     return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs)
  3822.  
  3823.  
  3824. class NotebookEvent(BookCtrlBaseEvent):
  3825.     '''Proxy of C++ NotebookEvent class'''
  3826.     
  3827.     def __repr__(self):
  3828.         return '<%s.%s; proxy of C++ wxNotebookEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3829.  
  3830.     
  3831.     def __init__(self, *args, **kwargs):
  3832.         '''
  3833.         __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, 
  3834.             int nOldSel=-1) -> NotebookEvent
  3835.         '''
  3836.         newobj = _controls_.new_NotebookEvent(*args, **kwargs)
  3837.         self.this = newobj.this
  3838.         self.thisown = 1
  3839.         del newobj.thisown
  3840.  
  3841.  
  3842.  
  3843. class NotebookEventPtr(NotebookEvent):
  3844.     
  3845.     def __init__(self, this):
  3846.         self.this = this
  3847.         if not hasattr(self, 'thisown'):
  3848.             self.thisown = 0
  3849.         
  3850.         self.__class__ = NotebookEvent
  3851.  
  3852.  
  3853. _controls_.NotebookEvent_swigregister(NotebookEventPtr)
  3854. wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
  3855. wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
  3856. EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1)
  3857. EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1)
  3858.  
  3859. class NotebookPage(wx.Panel):
  3860.     """
  3861.     There is an old (and apparently unsolvable) bug when placing a
  3862.     window with a nonstandard background colour in a wx.Notebook on
  3863.     wxGTK1, as the notbooks's background colour would always be used
  3864.     when the window is refreshed.  The solution is to place a panel in
  3865.     the notbook and the coloured window on the panel, sized to cover
  3866.     the panel.  This simple class does that for you, just put an
  3867.     instance of this in the notebook and make your regular window a
  3868.     child of this one and it will handle the resize for you.
  3869.     """
  3870.     
  3871.     def __init__(self, parent, id = -1, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.TAB_TRAVERSAL, name = 'panel'):
  3872.         wx.Panel.__init__(self, parent, id, pos, size, style, name)
  3873.         self.child = None
  3874.         self.Bind(wx.EVT_SIZE, self.OnSize)
  3875.  
  3876.     
  3877.     def OnSize(self, evt):
  3878.         if self.child is None:
  3879.             children = self.GetChildren()
  3880.             if len(children):
  3881.                 self.child = children[0]
  3882.             
  3883.         
  3884.         if self.child:
  3885.             self.child.SetPosition((0, 0))
  3886.             self.child.SetSize(self.GetSize())
  3887.         
  3888.  
  3889.  
  3890. LB_DEFAULT = _controls_.LB_DEFAULT
  3891. LB_TOP = _controls_.LB_TOP
  3892. LB_BOTTOM = _controls_.LB_BOTTOM
  3893. LB_LEFT = _controls_.LB_LEFT
  3894. LB_RIGHT = _controls_.LB_RIGHT
  3895. LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK
  3896.  
  3897. class Listbook(BookCtrlBase):
  3898.     '''Proxy of C++ Listbook class'''
  3899.     
  3900.     def __repr__(self):
  3901.         return '<%s.%s; proxy of C++ wxListbook instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3902.  
  3903.     
  3904.     def __init__(self, *args, **kwargs):
  3905.         '''
  3906.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  3907.             Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
  3908.         '''
  3909.         newobj = _controls_.new_Listbook(*args, **kwargs)
  3910.         self.this = newobj.this
  3911.         self.thisown = 1
  3912.         del newobj.thisown
  3913.         self._setOORInfo(self)
  3914.  
  3915.     
  3916.     def Create(*args, **kwargs):
  3917.         '''
  3918.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  3919.             Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
  3920.         '''
  3921.         return _controls_.Listbook_Create(*args, **kwargs)
  3922.  
  3923.     
  3924.     def IsVertical(*args, **kwargs):
  3925.         '''IsVertical(self) -> bool'''
  3926.         return _controls_.Listbook_IsVertical(*args, **kwargs)
  3927.  
  3928.     
  3929.     def GetListView(*args, **kwargs):
  3930.         '''GetListView(self) -> ListView'''
  3931.         return _controls_.Listbook_GetListView(*args, **kwargs)
  3932.  
  3933.  
  3934.  
  3935. class ListbookPtr(Listbook):
  3936.     
  3937.     def __init__(self, this):
  3938.         self.this = this
  3939.         if not hasattr(self, 'thisown'):
  3940.             self.thisown = 0
  3941.         
  3942.         self.__class__ = Listbook
  3943.  
  3944.  
  3945. _controls_.Listbook_swigregister(ListbookPtr)
  3946.  
  3947. def PreListbook(*args, **kwargs):
  3948.     '''PreListbook() -> Listbook'''
  3949.     val = _controls_.new_PreListbook(*args, **kwargs)
  3950.     val.thisown = 1
  3951.     return val
  3952.  
  3953.  
  3954. class ListbookEvent(BookCtrlBaseEvent):
  3955.     '''Proxy of C++ ListbookEvent class'''
  3956.     
  3957.     def __repr__(self):
  3958.         return '<%s.%s; proxy of C++ wxListbookEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3959.  
  3960.     
  3961.     def __init__(self, *args, **kwargs):
  3962.         '''
  3963.         __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, 
  3964.             int nOldSel=-1) -> ListbookEvent
  3965.         '''
  3966.         newobj = _controls_.new_ListbookEvent(*args, **kwargs)
  3967.         self.this = newobj.this
  3968.         self.thisown = 1
  3969.         del newobj.thisown
  3970.  
  3971.  
  3972.  
  3973. class ListbookEventPtr(ListbookEvent):
  3974.     
  3975.     def __init__(self, this):
  3976.         self.this = this
  3977.         if not hasattr(self, 'thisown'):
  3978.             self.thisown = 0
  3979.         
  3980.         self.__class__ = ListbookEvent
  3981.  
  3982.  
  3983. _controls_.ListbookEvent_swigregister(ListbookEventPtr)
  3984. wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
  3985. wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
  3986. EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1)
  3987. EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1)
  3988. CHB_DEFAULT = _controls_.CHB_DEFAULT
  3989. CHB_TOP = _controls_.CHB_TOP
  3990. CHB_BOTTOM = _controls_.CHB_BOTTOM
  3991. CHB_LEFT = _controls_.CHB_LEFT
  3992. CHB_RIGHT = _controls_.CHB_RIGHT
  3993. CHB_ALIGN_MASK = _controls_.CHB_ALIGN_MASK
  3994.  
  3995. class Choicebook(BookCtrlBase):
  3996.     '''Proxy of C++ Choicebook class'''
  3997.     
  3998.     def __repr__(self):
  3999.         return '<%s.%s; proxy of C++ wxChoicebook instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4000.  
  4001.     
  4002.     def __init__(self, *args, **kwargs):
  4003.         '''
  4004.         __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, 
  4005.             long style=0, String name=EmptyString) -> Choicebook
  4006.         '''
  4007.         newobj = _controls_.new_Choicebook(*args, **kwargs)
  4008.         self.this = newobj.this
  4009.         self.thisown = 1
  4010.         del newobj.thisown
  4011.         self._setOORInfo(self)
  4012.  
  4013.     
  4014.     def Create(*args, **kwargs):
  4015.         '''
  4016.         Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, 
  4017.             long style=0, String name=EmptyString) -> bool
  4018.         '''
  4019.         return _controls_.Choicebook_Create(*args, **kwargs)
  4020.  
  4021.     
  4022.     def IsVertical(*args, **kwargs):
  4023.         '''IsVertical(self) -> bool'''
  4024.         return _controls_.Choicebook_IsVertical(*args, **kwargs)
  4025.  
  4026.     
  4027.     def GetChoiceCtrl(*args, **kwargs):
  4028.         '''GetChoiceCtrl(self) -> Choice'''
  4029.         return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs)
  4030.  
  4031.     
  4032.     def DeleteAllPages(*args, **kwargs):
  4033.         '''DeleteAllPages(self) -> bool'''
  4034.         return _controls_.Choicebook_DeleteAllPages(*args, **kwargs)
  4035.  
  4036.  
  4037.  
  4038. class ChoicebookPtr(Choicebook):
  4039.     
  4040.     def __init__(self, this):
  4041.         self.this = this
  4042.         if not hasattr(self, 'thisown'):
  4043.             self.thisown = 0
  4044.         
  4045.         self.__class__ = Choicebook
  4046.  
  4047.  
  4048. _controls_.Choicebook_swigregister(ChoicebookPtr)
  4049.  
  4050. def PreChoicebook(*args, **kwargs):
  4051.     '''PreChoicebook() -> Choicebook'''
  4052.     val = _controls_.new_PreChoicebook(*args, **kwargs)
  4053.     val.thisown = 1
  4054.     return val
  4055.  
  4056.  
  4057. class ChoicebookEvent(BookCtrlBaseEvent):
  4058.     '''Proxy of C++ ChoicebookEvent class'''
  4059.     
  4060.     def __repr__(self):
  4061.         return '<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4062.  
  4063.     
  4064.     def __init__(self, *args, **kwargs):
  4065.         '''
  4066.         __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, 
  4067.             int nOldSel=-1) -> ChoicebookEvent
  4068.         '''
  4069.         newobj = _controls_.new_ChoicebookEvent(*args, **kwargs)
  4070.         self.this = newobj.this
  4071.         self.thisown = 1
  4072.         del newobj.thisown
  4073.  
  4074.  
  4075.  
  4076. class ChoicebookEventPtr(ChoicebookEvent):
  4077.     
  4078.     def __init__(self, this):
  4079.         self.this = this
  4080.         if not hasattr(self, 'thisown'):
  4081.             self.thisown = 0
  4082.         
  4083.         self.__class__ = ChoicebookEvent
  4084.  
  4085.  
  4086. _controls_.ChoicebookEvent_swigregister(ChoicebookEventPtr)
  4087. wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
  4088. wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
  4089. EVT_CHOICEBOOK_PAGE_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, 1)
  4090. EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, 1)
  4091.  
  4092. class BookCtrlSizer(_core.Sizer):
  4093.     '''Proxy of C++ BookCtrlSizer class'''
  4094.     
  4095.     def __repr__(self):
  4096.         return '<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4097.  
  4098.     
  4099.     def __init__(self, *args, **kwargs):
  4100.         '''__init__(self, BookCtrlBase nb) -> BookCtrlSizer'''
  4101.         newobj = _controls_.new_BookCtrlSizer(*args, **kwargs)
  4102.         self.this = newobj.this
  4103.         self.thisown = 1
  4104.         del newobj.thisown
  4105.         self._setOORInfo(self)
  4106.  
  4107.     
  4108.     def RecalcSizes(*args, **kwargs):
  4109.         '''
  4110.         RecalcSizes(self)
  4111.  
  4112.         Using the sizes calculated by `CalcMin` reposition and resize all the
  4113.         items managed by this sizer.  You should not need to call this directly as
  4114.         it is called by `Layout`.
  4115.         '''
  4116.         return _controls_.BookCtrlSizer_RecalcSizes(*args, **kwargs)
  4117.  
  4118.     
  4119.     def CalcMin(*args, **kwargs):
  4120.         """
  4121.         CalcMin(self) -> Size
  4122.  
  4123.         This method is where the sizer will do the actual calculation of its
  4124.         children's minimal sizes.  You should not need to call this directly as
  4125.         it is called by `Layout`.
  4126.         """
  4127.         return _controls_.BookCtrlSizer_CalcMin(*args, **kwargs)
  4128.  
  4129.     
  4130.     def GetControl(*args, **kwargs):
  4131.         '''GetControl(self) -> BookCtrlBase'''
  4132.         return _controls_.BookCtrlSizer_GetControl(*args, **kwargs)
  4133.  
  4134.  
  4135.  
  4136. class BookCtrlSizerPtr(BookCtrlSizer):
  4137.     
  4138.     def __init__(self, this):
  4139.         self.this = this
  4140.         if not hasattr(self, 'thisown'):
  4141.             self.thisown = 0
  4142.         
  4143.         self.__class__ = BookCtrlSizer
  4144.  
  4145.  
  4146. _controls_.BookCtrlSizer_swigregister(BookCtrlSizerPtr)
  4147.  
  4148. class NotebookSizer(_core.Sizer):
  4149.     '''Proxy of C++ NotebookSizer class'''
  4150.     
  4151.     def __repr__(self):
  4152.         return '<%s.%s; proxy of C++ wxNotebookSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4153.  
  4154.     
  4155.     def __init__(self, *args, **kwargs):
  4156.         '''__init__(self, Notebook nb) -> NotebookSizer'''
  4157.         newobj = _controls_.new_NotebookSizer(*args, **kwargs)
  4158.         self.this = newobj.this
  4159.         self.thisown = 1
  4160.         del newobj.thisown
  4161.         self._setOORInfo(self)
  4162.  
  4163.     
  4164.     def RecalcSizes(*args, **kwargs):
  4165.         '''
  4166.         RecalcSizes(self)
  4167.  
  4168.         Using the sizes calculated by `CalcMin` reposition and resize all the
  4169.         items managed by this sizer.  You should not need to call this directly as
  4170.         it is called by `Layout`.
  4171.         '''
  4172.         return _controls_.NotebookSizer_RecalcSizes(*args, **kwargs)
  4173.  
  4174.     
  4175.     def CalcMin(*args, **kwargs):
  4176.         """
  4177.         CalcMin(self) -> Size
  4178.  
  4179.         This method is where the sizer will do the actual calculation of its
  4180.         children's minimal sizes.  You should not need to call this directly as
  4181.         it is called by `Layout`.
  4182.         """
  4183.         return _controls_.NotebookSizer_CalcMin(*args, **kwargs)
  4184.  
  4185.     
  4186.     def GetNotebook(*args, **kwargs):
  4187.         '''GetNotebook(self) -> Notebook'''
  4188.         return _controls_.NotebookSizer_GetNotebook(*args, **kwargs)
  4189.  
  4190.  
  4191.  
  4192. class NotebookSizerPtr(NotebookSizer):
  4193.     
  4194.     def __init__(self, this):
  4195.         self.this = this
  4196.         if not hasattr(self, 'thisown'):
  4197.             self.thisown = 0
  4198.         
  4199.         self.__class__ = NotebookSizer
  4200.  
  4201.  
  4202. _controls_.NotebookSizer_swigregister(NotebookSizerPtr)
  4203. NotebookSizer.__init__ = wx._deprecated(NotebookSizer.__init__, 'NotebookSizer is no longer needed.')
  4204. BookCtrlSizer.__init__ = wx._deprecated(BookCtrlSizer.__init__, 'BookCtrlSizer is no longer needed.')
  4205. TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON
  4206. TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR
  4207. TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL
  4208. TB_HORIZONTAL = _controls_.TB_HORIZONTAL
  4209. TB_VERTICAL = _controls_.TB_VERTICAL
  4210. TB_3DBUTTONS = _controls_.TB_3DBUTTONS
  4211. TB_FLAT = _controls_.TB_FLAT
  4212. TB_DOCKABLE = _controls_.TB_DOCKABLE
  4213. TB_NOICONS = _controls_.TB_NOICONS
  4214. TB_TEXT = _controls_.TB_TEXT
  4215. TB_NODIVIDER = _controls_.TB_NODIVIDER
  4216. TB_NOALIGN = _controls_.TB_NOALIGN
  4217. TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT
  4218. TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT
  4219.  
  4220. class ToolBarToolBase(_core.Object):
  4221.     '''Proxy of C++ ToolBarToolBase class'''
  4222.     
  4223.     def __init__(self):
  4224.         raise RuntimeError, 'No constructor defined'
  4225.  
  4226.     
  4227.     def __repr__(self):
  4228.         return '<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4229.  
  4230.     
  4231.     def GetId(*args, **kwargs):
  4232.         '''GetId(self) -> int'''
  4233.         return _controls_.ToolBarToolBase_GetId(*args, **kwargs)
  4234.  
  4235.     
  4236.     def GetControl(*args, **kwargs):
  4237.         '''GetControl(self) -> Control'''
  4238.         return _controls_.ToolBarToolBase_GetControl(*args, **kwargs)
  4239.  
  4240.     
  4241.     def GetToolBar(*args, **kwargs):
  4242.         '''GetToolBar(self) -> ToolBarBase'''
  4243.         return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs)
  4244.  
  4245.     
  4246.     def IsButton(*args, **kwargs):
  4247.         '''IsButton(self) -> int'''
  4248.         return _controls_.ToolBarToolBase_IsButton(*args, **kwargs)
  4249.  
  4250.     
  4251.     def IsControl(*args, **kwargs):
  4252.         '''IsControl(self) -> int'''
  4253.         return _controls_.ToolBarToolBase_IsControl(*args, **kwargs)
  4254.  
  4255.     
  4256.     def IsSeparator(*args, **kwargs):
  4257.         '''IsSeparator(self) -> int'''
  4258.         return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs)
  4259.  
  4260.     
  4261.     def GetStyle(*args, **kwargs):
  4262.         '''GetStyle(self) -> int'''
  4263.         return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs)
  4264.  
  4265.     
  4266.     def GetKind(*args, **kwargs):
  4267.         '''GetKind(self) -> int'''
  4268.         return _controls_.ToolBarToolBase_GetKind(*args, **kwargs)
  4269.  
  4270.     
  4271.     def IsEnabled(*args, **kwargs):
  4272.         '''IsEnabled(self) -> bool'''
  4273.         return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs)
  4274.  
  4275.     
  4276.     def IsToggled(*args, **kwargs):
  4277.         '''IsToggled(self) -> bool'''
  4278.         return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs)
  4279.  
  4280.     
  4281.     def CanBeToggled(*args, **kwargs):
  4282.         '''CanBeToggled(self) -> bool'''
  4283.         return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs)
  4284.  
  4285.     
  4286.     def GetNormalBitmap(*args, **kwargs):
  4287.         '''GetNormalBitmap(self) -> Bitmap'''
  4288.         return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs)
  4289.  
  4290.     
  4291.     def GetDisabledBitmap(*args, **kwargs):
  4292.         '''GetDisabledBitmap(self) -> Bitmap'''
  4293.         return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs)
  4294.  
  4295.     
  4296.     def GetBitmap(*args, **kwargs):
  4297.         '''GetBitmap(self) -> Bitmap'''
  4298.         return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs)
  4299.  
  4300.     
  4301.     def GetLabel(*args, **kwargs):
  4302.         '''GetLabel(self) -> String'''
  4303.         return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs)
  4304.  
  4305.     
  4306.     def GetShortHelp(*args, **kwargs):
  4307.         '''GetShortHelp(self) -> String'''
  4308.         return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs)
  4309.  
  4310.     
  4311.     def GetLongHelp(*args, **kwargs):
  4312.         '''GetLongHelp(self) -> String'''
  4313.         return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs)
  4314.  
  4315.     
  4316.     def Enable(*args, **kwargs):
  4317.         '''Enable(self, bool enable) -> bool'''
  4318.         return _controls_.ToolBarToolBase_Enable(*args, **kwargs)
  4319.  
  4320.     
  4321.     def Toggle(*args, **kwargs):
  4322.         '''Toggle(self)'''
  4323.         return _controls_.ToolBarToolBase_Toggle(*args, **kwargs)
  4324.  
  4325.     
  4326.     def SetToggle(*args, **kwargs):
  4327.         '''SetToggle(self, bool toggle) -> bool'''
  4328.         return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs)
  4329.  
  4330.     
  4331.     def SetShortHelp(*args, **kwargs):
  4332.         '''SetShortHelp(self, String help) -> bool'''
  4333.         return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs)
  4334.  
  4335.     
  4336.     def SetLongHelp(*args, **kwargs):
  4337.         '''SetLongHelp(self, String help) -> bool'''
  4338.         return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs)
  4339.  
  4340.     
  4341.     def SetNormalBitmap(*args, **kwargs):
  4342.         '''SetNormalBitmap(self, Bitmap bmp)'''
  4343.         return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs)
  4344.  
  4345.     
  4346.     def SetDisabledBitmap(*args, **kwargs):
  4347.         '''SetDisabledBitmap(self, Bitmap bmp)'''
  4348.         return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs)
  4349.  
  4350.     
  4351.     def SetLabel(*args, **kwargs):
  4352.         '''SetLabel(self, String label)'''
  4353.         return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs)
  4354.  
  4355.     
  4356.     def Detach(*args, **kwargs):
  4357.         '''Detach(self)'''
  4358.         return _controls_.ToolBarToolBase_Detach(*args, **kwargs)
  4359.  
  4360.     
  4361.     def Attach(*args, **kwargs):
  4362.         '''Attach(self, ToolBarBase tbar)'''
  4363.         return _controls_.ToolBarToolBase_Attach(*args, **kwargs)
  4364.  
  4365.     
  4366.     def GetClientData(*args, **kwargs):
  4367.         '''GetClientData(self) -> PyObject'''
  4368.         return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs)
  4369.  
  4370.     
  4371.     def SetClientData(*args, **kwargs):
  4372.         '''SetClientData(self, PyObject clientData)'''
  4373.         return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs)
  4374.  
  4375.     GetBitmap1 = GetNormalBitmap
  4376.     GetBitmap2 = GetDisabledBitmap
  4377.     SetBitmap1 = SetNormalBitmap
  4378.     SetBitmap2 = SetDisabledBitmap
  4379.  
  4380.  
  4381. class ToolBarToolBasePtr(ToolBarToolBase):
  4382.     
  4383.     def __init__(self, this):
  4384.         self.this = this
  4385.         if not hasattr(self, 'thisown'):
  4386.             self.thisown = 0
  4387.         
  4388.         self.__class__ = ToolBarToolBase
  4389.  
  4390.  
  4391. _controls_.ToolBarToolBase_swigregister(ToolBarToolBasePtr)
  4392.  
  4393. class ToolBarBase(_core.Control):
  4394.     '''Proxy of C++ ToolBarBase class'''
  4395.     
  4396.     def __init__(self):
  4397.         raise RuntimeError, 'No constructor defined'
  4398.  
  4399.     
  4400.     def __repr__(self):
  4401.         return '<%s.%s; proxy of C++ wxToolBarBase instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4402.  
  4403.     
  4404.     def DoAddTool(*args, **kwargs):
  4405.         '''
  4406.         DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, 
  4407.             int kind=ITEM_NORMAL, String shortHelp=EmptyString, 
  4408.             String longHelp=EmptyString, 
  4409.             PyObject clientData=None) -> ToolBarToolBase
  4410.         '''
  4411.         return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
  4412.  
  4413.     
  4414.     def DoInsertTool(*args, **kwargs):
  4415.         '''
  4416.         DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, 
  4417.             int kind=ITEM_NORMAL, 
  4418.             String shortHelp=EmptyString, String longHelp=EmptyString, 
  4419.             PyObject clientData=None) -> ToolBarToolBase
  4420.         '''
  4421.         return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs)
  4422.  
  4423.     
  4424.     def AddTool(self, id, bitmap, pushedBitmap = wx.NullBitmap, isToggle = 0, clientData = None, shortHelpString = '', longHelpString = ''):
  4425.         '''Old style method to add a tool to the toolbar.'''
  4426.         kind = wx.ITEM_NORMAL
  4427.         if isToggle:
  4428.             kind = wx.ITEM_CHECK
  4429.         
  4430.         return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, shortHelpString, longHelpString, clientData)
  4431.  
  4432.     
  4433.     def AddSimpleTool(self, id, bitmap, shortHelpString = '', longHelpString = '', isToggle = 0):
  4434.         '''Old style method to add a tool to the toolbar.'''
  4435.         kind = wx.ITEM_NORMAL
  4436.         if isToggle:
  4437.             kind = wx.ITEM_CHECK
  4438.         
  4439.         return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, shortHelpString, longHelpString, None)
  4440.  
  4441.     
  4442.     def InsertTool(self, pos, id, bitmap, pushedBitmap = wx.NullBitmap, isToggle = 0, clientData = None, shortHelpString = '', longHelpString = ''):
  4443.         '''Old style method to insert a tool in the toolbar.'''
  4444.         kind = wx.ITEM_NORMAL
  4445.         if isToggle:
  4446.             kind = wx.ITEM_CHECK
  4447.         
  4448.         return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, shortHelpString, longHelpString, clientData)
  4449.  
  4450.     
  4451.     def InsertSimpleTool(self, pos, id, bitmap, shortHelpString = '', longHelpString = '', isToggle = 0):
  4452.         '''Old style method to insert a tool in the toolbar.'''
  4453.         kind = wx.ITEM_NORMAL
  4454.         if isToggle:
  4455.             kind = wx.ITEM_CHECK
  4456.         
  4457.         return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, shortHelpString, longHelpString, None)
  4458.  
  4459.     
  4460.     def AddLabelTool(self, id, label, bitmap, bmpDisabled = wx.NullBitmap, kind = wx.ITEM_NORMAL, shortHelp = '', longHelp = '', clientData = None):
  4461.         '''
  4462.         The full AddTool() function.
  4463.  
  4464.         If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
  4465.         is created and used as the disabled image.
  4466.         '''
  4467.         return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, shortHelp, longHelp, clientData)
  4468.  
  4469.     
  4470.     def InsertLabelTool(self, pos, id, label, bitmap, bmpDisabled = wx.NullBitmap, kind = wx.ITEM_NORMAL, shortHelp = '', longHelp = '', clientData = None):
  4471.         '''
  4472.         Insert the new tool at the given position, if pos == GetToolsCount(), it
  4473.         is equivalent to AddTool()
  4474.         '''
  4475.         return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, shortHelp, longHelp, clientData)
  4476.  
  4477.     
  4478.     def AddCheckLabelTool(self, id, label, bitmap, bmpDisabled = wx.NullBitmap, shortHelp = '', longHelp = '', clientData = None):
  4479.         '''Add a check tool, i.e. a tool which can be toggled'''
  4480.         return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, shortHelp, longHelp, clientData)
  4481.  
  4482.     
  4483.     def AddRadioLabelTool(self, id, label, bitmap, bmpDisabled = wx.NullBitmap, shortHelp = '', longHelp = '', clientData = None):
  4484.         '''
  4485.         Add a radio tool, i.e. a tool which can be toggled and releases any
  4486.         other toggled radio tools in the same group when it happens
  4487.         '''
  4488.         return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, shortHelp, longHelp, clientData)
  4489.  
  4490.     
  4491.     def AddCheckTool(self, id, bitmap, bmpDisabled = wx.NullBitmap, shortHelp = '', longHelp = '', clientData = None):
  4492.         '''Add a check tool, i.e. a tool which can be toggled'''
  4493.         return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, shortHelp, longHelp, clientData)
  4494.  
  4495.     
  4496.     def AddRadioTool(self, id, bitmap, bmpDisabled = wx.NullBitmap, shortHelp = '', longHelp = '', clientData = None):
  4497.         '''
  4498.         Add a radio tool, i.e. a tool which can be toggled and releases any
  4499.         other toggled radio tools in the same group when it happens
  4500.         '''
  4501.         return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, shortHelp, longHelp, clientData)
  4502.  
  4503.     
  4504.     def AddToolItem(*args, **kwargs):
  4505.         '''AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase'''
  4506.         return _controls_.ToolBarBase_AddToolItem(*args, **kwargs)
  4507.  
  4508.     
  4509.     def InsertToolItem(*args, **kwargs):
  4510.         '''InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase'''
  4511.         return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs)
  4512.  
  4513.     
  4514.     def AddControl(*args, **kwargs):
  4515.         '''AddControl(self, Control control) -> ToolBarToolBase'''
  4516.         return _controls_.ToolBarBase_AddControl(*args, **kwargs)
  4517.  
  4518.     
  4519.     def InsertControl(*args, **kwargs):
  4520.         '''InsertControl(self, size_t pos, Control control) -> ToolBarToolBase'''
  4521.         return _controls_.ToolBarBase_InsertControl(*args, **kwargs)
  4522.  
  4523.     
  4524.     def FindControl(*args, **kwargs):
  4525.         '''FindControl(self, int id) -> Control'''
  4526.         return _controls_.ToolBarBase_FindControl(*args, **kwargs)
  4527.  
  4528.     
  4529.     def AddSeparator(*args, **kwargs):
  4530.         '''AddSeparator(self) -> ToolBarToolBase'''
  4531.         return _controls_.ToolBarBase_AddSeparator(*args, **kwargs)
  4532.  
  4533.     
  4534.     def InsertSeparator(*args, **kwargs):
  4535.         '''InsertSeparator(self, size_t pos) -> ToolBarToolBase'''
  4536.         return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs)
  4537.  
  4538.     
  4539.     def RemoveTool(*args, **kwargs):
  4540.         '''RemoveTool(self, int id) -> ToolBarToolBase'''
  4541.         return _controls_.ToolBarBase_RemoveTool(*args, **kwargs)
  4542.  
  4543.     
  4544.     def DeleteToolByPos(*args, **kwargs):
  4545.         '''DeleteToolByPos(self, size_t pos) -> bool'''
  4546.         return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs)
  4547.  
  4548.     
  4549.     def DeleteTool(*args, **kwargs):
  4550.         '''DeleteTool(self, int id) -> bool'''
  4551.         return _controls_.ToolBarBase_DeleteTool(*args, **kwargs)
  4552.  
  4553.     
  4554.     def ClearTools(*args, **kwargs):
  4555.         '''ClearTools(self)'''
  4556.         return _controls_.ToolBarBase_ClearTools(*args, **kwargs)
  4557.  
  4558.     
  4559.     def Realize(*args, **kwargs):
  4560.         '''Realize(self) -> bool'''
  4561.         return _controls_.ToolBarBase_Realize(*args, **kwargs)
  4562.  
  4563.     
  4564.     def EnableTool(*args, **kwargs):
  4565.         '''EnableTool(self, int id, bool enable)'''
  4566.         return _controls_.ToolBarBase_EnableTool(*args, **kwargs)
  4567.  
  4568.     
  4569.     def ToggleTool(*args, **kwargs):
  4570.         '''ToggleTool(self, int id, bool toggle)'''
  4571.         return _controls_.ToolBarBase_ToggleTool(*args, **kwargs)
  4572.  
  4573.     
  4574.     def SetToggle(*args, **kwargs):
  4575.         '''SetToggle(self, int id, bool toggle)'''
  4576.         return _controls_.ToolBarBase_SetToggle(*args, **kwargs)
  4577.  
  4578.     
  4579.     def GetToolClientData(*args, **kwargs):
  4580.         '''GetToolClientData(self, int id) -> PyObject'''
  4581.         return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs)
  4582.  
  4583.     
  4584.     def SetToolClientData(*args, **kwargs):
  4585.         '''SetToolClientData(self, int id, PyObject clientData)'''
  4586.         return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs)
  4587.  
  4588.     
  4589.     def GetToolPos(*args, **kwargs):
  4590.         '''GetToolPos(self, int id) -> int'''
  4591.         return _controls_.ToolBarBase_GetToolPos(*args, **kwargs)
  4592.  
  4593.     
  4594.     def GetToolState(*args, **kwargs):
  4595.         '''GetToolState(self, int id) -> bool'''
  4596.         return _controls_.ToolBarBase_GetToolState(*args, **kwargs)
  4597.  
  4598.     
  4599.     def GetToolEnabled(*args, **kwargs):
  4600.         '''GetToolEnabled(self, int id) -> bool'''
  4601.         return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs)
  4602.  
  4603.     
  4604.     def SetToolShortHelp(*args, **kwargs):
  4605.         '''SetToolShortHelp(self, int id, String helpString)'''
  4606.         return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs)
  4607.  
  4608.     
  4609.     def GetToolShortHelp(*args, **kwargs):
  4610.         '''GetToolShortHelp(self, int id) -> String'''
  4611.         return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs)
  4612.  
  4613.     
  4614.     def SetToolLongHelp(*args, **kwargs):
  4615.         '''SetToolLongHelp(self, int id, String helpString)'''
  4616.         return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs)
  4617.  
  4618.     
  4619.     def GetToolLongHelp(*args, **kwargs):
  4620.         '''GetToolLongHelp(self, int id) -> String'''
  4621.         return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs)
  4622.  
  4623.     
  4624.     def SetMarginsXY(*args, **kwargs):
  4625.         '''SetMarginsXY(self, int x, int y)'''
  4626.         return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs)
  4627.  
  4628.     
  4629.     def SetMargins(*args, **kwargs):
  4630.         '''SetMargins(self, Size size)'''
  4631.         return _controls_.ToolBarBase_SetMargins(*args, **kwargs)
  4632.  
  4633.     
  4634.     def SetToolPacking(*args, **kwargs):
  4635.         '''SetToolPacking(self, int packing)'''
  4636.         return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs)
  4637.  
  4638.     
  4639.     def SetToolSeparation(*args, **kwargs):
  4640.         '''SetToolSeparation(self, int separation)'''
  4641.         return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs)
  4642.  
  4643.     
  4644.     def GetToolMargins(*args, **kwargs):
  4645.         '''GetToolMargins(self) -> Size'''
  4646.         return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs)
  4647.  
  4648.     
  4649.     def GetMargins(*args, **kwargs):
  4650.         '''GetMargins(self) -> Size'''
  4651.         return _controls_.ToolBarBase_GetMargins(*args, **kwargs)
  4652.  
  4653.     
  4654.     def GetToolPacking(*args, **kwargs):
  4655.         '''GetToolPacking(self) -> int'''
  4656.         return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs)
  4657.  
  4658.     
  4659.     def GetToolSeparation(*args, **kwargs):
  4660.         '''GetToolSeparation(self) -> int'''
  4661.         return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs)
  4662.  
  4663.     
  4664.     def SetRows(*args, **kwargs):
  4665.         '''SetRows(self, int nRows)'''
  4666.         return _controls_.ToolBarBase_SetRows(*args, **kwargs)
  4667.  
  4668.     
  4669.     def SetMaxRowsCols(*args, **kwargs):
  4670.         '''SetMaxRowsCols(self, int rows, int cols)'''
  4671.         return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs)
  4672.  
  4673.     
  4674.     def GetMaxRows(*args, **kwargs):
  4675.         '''GetMaxRows(self) -> int'''
  4676.         return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs)
  4677.  
  4678.     
  4679.     def GetMaxCols(*args, **kwargs):
  4680.         '''GetMaxCols(self) -> int'''
  4681.         return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs)
  4682.  
  4683.     
  4684.     def SetToolBitmapSize(*args, **kwargs):
  4685.         '''SetToolBitmapSize(self, Size size)'''
  4686.         return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs)
  4687.  
  4688.     
  4689.     def GetToolBitmapSize(*args, **kwargs):
  4690.         '''GetToolBitmapSize(self) -> Size'''
  4691.         return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs)
  4692.  
  4693.     
  4694.     def GetToolSize(*args, **kwargs):
  4695.         '''GetToolSize(self) -> Size'''
  4696.         return _controls_.ToolBarBase_GetToolSize(*args, **kwargs)
  4697.  
  4698.     
  4699.     def FindToolForPosition(*args, **kwargs):
  4700.         '''FindToolForPosition(self, int x, int y) -> ToolBarToolBase'''
  4701.         return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs)
  4702.  
  4703.     
  4704.     def FindById(*args, **kwargs):
  4705.         '''FindById(self, int toolid) -> ToolBarToolBase'''
  4706.         return _controls_.ToolBarBase_FindById(*args, **kwargs)
  4707.  
  4708.     
  4709.     def IsVertical(*args, **kwargs):
  4710.         '''IsVertical(self) -> bool'''
  4711.         return _controls_.ToolBarBase_IsVertical(*args, **kwargs)
  4712.  
  4713.     
  4714.     def GetToolsCount(*args, **kwargs):
  4715.         '''GetToolsCount(self) -> size_t'''
  4716.         return _controls_.ToolBarBase_GetToolsCount(*args, **kwargs)
  4717.  
  4718.  
  4719.  
  4720. class ToolBarBasePtr(ToolBarBase):
  4721.     
  4722.     def __init__(self, this):
  4723.         self.this = this
  4724.         if not hasattr(self, 'thisown'):
  4725.             self.thisown = 0
  4726.         
  4727.         self.__class__ = ToolBarBase
  4728.  
  4729.  
  4730. _controls_.ToolBarBase_swigregister(ToolBarBasePtr)
  4731.  
  4732. class ToolBar(ToolBarBase):
  4733.     '''Proxy of C++ ToolBar class'''
  4734.     
  4735.     def __repr__(self):
  4736.         return '<%s.%s; proxy of C++ wxToolBar instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4737.  
  4738.     
  4739.     def __init__(self, *args, **kwargs):
  4740.         '''
  4741.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  4742.             Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, 
  4743.             String name=wxPyToolBarNameStr) -> ToolBar
  4744.         '''
  4745.         newobj = _controls_.new_ToolBar(*args, **kwargs)
  4746.         self.this = newobj.this
  4747.         self.thisown = 1
  4748.         del newobj.thisown
  4749.         self._setOORInfo(self)
  4750.  
  4751.     
  4752.     def Create(*args, **kwargs):
  4753.         '''
  4754.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  4755.             Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, 
  4756.             String name=wxPyToolBarNameStr) -> bool
  4757.         '''
  4758.         return _controls_.ToolBar_Create(*args, **kwargs)
  4759.  
  4760.     
  4761.     def FindToolForPosition(*args, **kwargs):
  4762.         '''FindToolForPosition(self, int x, int y) -> ToolBarToolBase'''
  4763.         return _controls_.ToolBar_FindToolForPosition(*args, **kwargs)
  4764.  
  4765.     
  4766.     def GetClassDefaultAttributes(*args, **kwargs):
  4767.         """
  4768.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  4769.  
  4770.         Get the default attributes for this class.  This is useful if you want
  4771.         to use the same font or colour in your own control as in a standard
  4772.         control -- which is a much better idea than hard coding specific
  4773.         colours or fonts which might look completely out of place on the
  4774.         user's system, especially if it uses themes.
  4775.  
  4776.         The variant parameter is only relevant under Mac currently and is
  4777.         ignore under other platforms. Under Mac, it will change the size of
  4778.         the returned font. See `wx.Window.SetWindowVariant` for more about
  4779.         this.
  4780.         """
  4781.         return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs)
  4782.  
  4783.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  4784.  
  4785.  
  4786. class ToolBarPtr(ToolBar):
  4787.     
  4788.     def __init__(self, this):
  4789.         self.this = this
  4790.         if not hasattr(self, 'thisown'):
  4791.             self.thisown = 0
  4792.         
  4793.         self.__class__ = ToolBar
  4794.  
  4795.  
  4796. _controls_.ToolBar_swigregister(ToolBarPtr)
  4797.  
  4798. def PreToolBar(*args, **kwargs):
  4799.     '''PreToolBar() -> ToolBar'''
  4800.     val = _controls_.new_PreToolBar(*args, **kwargs)
  4801.     val.thisown = 1
  4802.     return val
  4803.  
  4804.  
  4805. def ToolBar_GetClassDefaultAttributes(*args, **kwargs):
  4806.     """
  4807.     ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  4808.  
  4809.     Get the default attributes for this class.  This is useful if you want
  4810.     to use the same font or colour in your own control as in a standard
  4811.     control -- which is a much better idea than hard coding specific
  4812.     colours or fonts which might look completely out of place on the
  4813.     user's system, especially if it uses themes.
  4814.  
  4815.     The variant parameter is only relevant under Mac currently and is
  4816.     ignore under other platforms. Under Mac, it will change the size of
  4817.     the returned font. See `wx.Window.SetWindowVariant` for more about
  4818.     this.
  4819.     """
  4820.     return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs)
  4821.  
  4822. LC_VRULES = _controls_.LC_VRULES
  4823. LC_HRULES = _controls_.LC_HRULES
  4824. LC_ICON = _controls_.LC_ICON
  4825. LC_SMALL_ICON = _controls_.LC_SMALL_ICON
  4826. LC_LIST = _controls_.LC_LIST
  4827. LC_REPORT = _controls_.LC_REPORT
  4828. LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP
  4829. LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT
  4830. LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE
  4831. LC_VIRTUAL = _controls_.LC_VIRTUAL
  4832. LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS
  4833. LC_NO_HEADER = _controls_.LC_NO_HEADER
  4834. LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER
  4835. LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL
  4836. LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING
  4837. LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING
  4838. LC_MASK_TYPE = _controls_.LC_MASK_TYPE
  4839. LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN
  4840. LC_MASK_SORT = _controls_.LC_MASK_SORT
  4841. LIST_MASK_STATE = _controls_.LIST_MASK_STATE
  4842. LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT
  4843. LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE
  4844. LIST_MASK_DATA = _controls_.LIST_MASK_DATA
  4845. LIST_SET_ITEM = _controls_.LIST_SET_ITEM
  4846. LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH
  4847. LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT
  4848. LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE
  4849. LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED
  4850. LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED
  4851. LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED
  4852. LIST_STATE_CUT = _controls_.LIST_STATE_CUT
  4853. LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED
  4854. LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED
  4855. LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE
  4856. LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED
  4857. LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE
  4858. LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE
  4859. LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW
  4860. LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE
  4861. LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON
  4862. LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL
  4863. LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT
  4864. LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON
  4865. LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT
  4866. LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT
  4867. LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM
  4868. LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE
  4869. LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL
  4870. LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW
  4871. LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT
  4872. LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT
  4873. LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT
  4874. LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT
  4875. LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP
  4876. LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID
  4877. LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT
  4878. LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT
  4879. LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE
  4880. LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER
  4881. LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE
  4882. LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER
  4883. LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS
  4884. LIST_RECT_ICON = _controls_.LIST_RECT_ICON
  4885. LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL
  4886. LIST_FIND_UP = _controls_.LIST_FIND_UP
  4887. LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN
  4888. LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT
  4889. LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT
  4890.  
  4891. class ListItemAttr(object):
  4892.     '''Proxy of C++ ListItemAttr class'''
  4893.     
  4894.     def __repr__(self):
  4895.         return '<%s.%s; proxy of C++ wxListItemAttr instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4896.  
  4897.     
  4898.     def __init__(self, *args, **kwargs):
  4899.         '''
  4900.         __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, 
  4901.             Font font=wxNullFont) -> ListItemAttr
  4902.         '''
  4903.         newobj = _controls_.new_ListItemAttr(*args, **kwargs)
  4904.         self.this = newobj.this
  4905.         self.thisown = 1
  4906.         del newobj.thisown
  4907.  
  4908.     
  4909.     def SetTextColour(*args, **kwargs):
  4910.         '''SetTextColour(self, Colour colText)'''
  4911.         return _controls_.ListItemAttr_SetTextColour(*args, **kwargs)
  4912.  
  4913.     
  4914.     def SetBackgroundColour(*args, **kwargs):
  4915.         '''SetBackgroundColour(self, Colour colBack)'''
  4916.         return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs)
  4917.  
  4918.     
  4919.     def SetFont(*args, **kwargs):
  4920.         '''SetFont(self, Font font)'''
  4921.         return _controls_.ListItemAttr_SetFont(*args, **kwargs)
  4922.  
  4923.     
  4924.     def HasTextColour(*args, **kwargs):
  4925.         '''HasTextColour(self) -> bool'''
  4926.         return _controls_.ListItemAttr_HasTextColour(*args, **kwargs)
  4927.  
  4928.     
  4929.     def HasBackgroundColour(*args, **kwargs):
  4930.         '''HasBackgroundColour(self) -> bool'''
  4931.         return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs)
  4932.  
  4933.     
  4934.     def HasFont(*args, **kwargs):
  4935.         '''HasFont(self) -> bool'''
  4936.         return _controls_.ListItemAttr_HasFont(*args, **kwargs)
  4937.  
  4938.     
  4939.     def GetTextColour(*args, **kwargs):
  4940.         '''GetTextColour(self) -> Colour'''
  4941.         return _controls_.ListItemAttr_GetTextColour(*args, **kwargs)
  4942.  
  4943.     
  4944.     def GetBackgroundColour(*args, **kwargs):
  4945.         '''GetBackgroundColour(self) -> Colour'''
  4946.         return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs)
  4947.  
  4948.     
  4949.     def GetFont(*args, **kwargs):
  4950.         '''GetFont(self) -> Font'''
  4951.         return _controls_.ListItemAttr_GetFont(*args, **kwargs)
  4952.  
  4953.     
  4954.     def Destroy(*args, **kwargs):
  4955.         '''Destroy(self)'''
  4956.         return _controls_.ListItemAttr_Destroy(*args, **kwargs)
  4957.  
  4958.  
  4959.  
  4960. class ListItemAttrPtr(ListItemAttr):
  4961.     
  4962.     def __init__(self, this):
  4963.         self.this = this
  4964.         if not hasattr(self, 'thisown'):
  4965.             self.thisown = 0
  4966.         
  4967.         self.__class__ = ListItemAttr
  4968.  
  4969.  
  4970. _controls_.ListItemAttr_swigregister(ListItemAttrPtr)
  4971. ListCtrlNameStr = cvar.ListCtrlNameStr
  4972.  
  4973. class ListItem(_core.Object):
  4974.     '''Proxy of C++ ListItem class'''
  4975.     
  4976.     def __repr__(self):
  4977.         return '<%s.%s; proxy of C++ wxListItem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4978.  
  4979.     
  4980.     def __init__(self, *args, **kwargs):
  4981.         '''__init__(self) -> ListItem'''
  4982.         newobj = _controls_.new_ListItem(*args, **kwargs)
  4983.         self.this = newobj.this
  4984.         self.thisown = 1
  4985.         del newobj.thisown
  4986.  
  4987.     
  4988.     def __del__(self, destroy = _controls_.delete_ListItem):
  4989.         '''__del__(self)'''
  4990.         
  4991.         try:
  4992.             if self.thisown:
  4993.                 destroy(self)
  4994.         except:
  4995.             pass
  4996.  
  4997.  
  4998.     
  4999.     def Clear(*args, **kwargs):
  5000.         '''Clear(self)'''
  5001.         return _controls_.ListItem_Clear(*args, **kwargs)
  5002.  
  5003.     
  5004.     def ClearAttributes(*args, **kwargs):
  5005.         '''ClearAttributes(self)'''
  5006.         return _controls_.ListItem_ClearAttributes(*args, **kwargs)
  5007.  
  5008.     
  5009.     def SetMask(*args, **kwargs):
  5010.         '''SetMask(self, long mask)'''
  5011.         return _controls_.ListItem_SetMask(*args, **kwargs)
  5012.  
  5013.     
  5014.     def SetId(*args, **kwargs):
  5015.         '''SetId(self, long id)'''
  5016.         return _controls_.ListItem_SetId(*args, **kwargs)
  5017.  
  5018.     
  5019.     def SetColumn(*args, **kwargs):
  5020.         '''SetColumn(self, int col)'''
  5021.         return _controls_.ListItem_SetColumn(*args, **kwargs)
  5022.  
  5023.     
  5024.     def SetState(*args, **kwargs):
  5025.         '''SetState(self, long state)'''
  5026.         return _controls_.ListItem_SetState(*args, **kwargs)
  5027.  
  5028.     
  5029.     def SetStateMask(*args, **kwargs):
  5030.         '''SetStateMask(self, long stateMask)'''
  5031.         return _controls_.ListItem_SetStateMask(*args, **kwargs)
  5032.  
  5033.     
  5034.     def SetText(*args, **kwargs):
  5035.         '''SetText(self, String text)'''
  5036.         return _controls_.ListItem_SetText(*args, **kwargs)
  5037.  
  5038.     
  5039.     def SetImage(*args, **kwargs):
  5040.         '''SetImage(self, int image)'''
  5041.         return _controls_.ListItem_SetImage(*args, **kwargs)
  5042.  
  5043.     
  5044.     def SetData(*args, **kwargs):
  5045.         '''SetData(self, long data)'''
  5046.         return _controls_.ListItem_SetData(*args, **kwargs)
  5047.  
  5048.     
  5049.     def SetWidth(*args, **kwargs):
  5050.         '''SetWidth(self, int width)'''
  5051.         return _controls_.ListItem_SetWidth(*args, **kwargs)
  5052.  
  5053.     
  5054.     def SetAlign(*args, **kwargs):
  5055.         '''SetAlign(self, int align)'''
  5056.         return _controls_.ListItem_SetAlign(*args, **kwargs)
  5057.  
  5058.     
  5059.     def SetTextColour(*args, **kwargs):
  5060.         '''SetTextColour(self, Colour colText)'''
  5061.         return _controls_.ListItem_SetTextColour(*args, **kwargs)
  5062.  
  5063.     
  5064.     def SetBackgroundColour(*args, **kwargs):
  5065.         '''SetBackgroundColour(self, Colour colBack)'''
  5066.         return _controls_.ListItem_SetBackgroundColour(*args, **kwargs)
  5067.  
  5068.     
  5069.     def SetFont(*args, **kwargs):
  5070.         '''SetFont(self, Font font)'''
  5071.         return _controls_.ListItem_SetFont(*args, **kwargs)
  5072.  
  5073.     
  5074.     def GetMask(*args, **kwargs):
  5075.         '''GetMask(self) -> long'''
  5076.         return _controls_.ListItem_GetMask(*args, **kwargs)
  5077.  
  5078.     
  5079.     def GetId(*args, **kwargs):
  5080.         '''GetId(self) -> long'''
  5081.         return _controls_.ListItem_GetId(*args, **kwargs)
  5082.  
  5083.     
  5084.     def GetColumn(*args, **kwargs):
  5085.         '''GetColumn(self) -> int'''
  5086.         return _controls_.ListItem_GetColumn(*args, **kwargs)
  5087.  
  5088.     
  5089.     def GetState(*args, **kwargs):
  5090.         '''GetState(self) -> long'''
  5091.         return _controls_.ListItem_GetState(*args, **kwargs)
  5092.  
  5093.     
  5094.     def GetText(*args, **kwargs):
  5095.         '''GetText(self) -> String'''
  5096.         return _controls_.ListItem_GetText(*args, **kwargs)
  5097.  
  5098.     
  5099.     def GetImage(*args, **kwargs):
  5100.         '''GetImage(self) -> int'''
  5101.         return _controls_.ListItem_GetImage(*args, **kwargs)
  5102.  
  5103.     
  5104.     def GetData(*args, **kwargs):
  5105.         '''GetData(self) -> long'''
  5106.         return _controls_.ListItem_GetData(*args, **kwargs)
  5107.  
  5108.     
  5109.     def GetWidth(*args, **kwargs):
  5110.         '''GetWidth(self) -> int'''
  5111.         return _controls_.ListItem_GetWidth(*args, **kwargs)
  5112.  
  5113.     
  5114.     def GetAlign(*args, **kwargs):
  5115.         '''GetAlign(self) -> int'''
  5116.         return _controls_.ListItem_GetAlign(*args, **kwargs)
  5117.  
  5118.     
  5119.     def GetAttributes(*args, **kwargs):
  5120.         '''GetAttributes(self) -> ListItemAttr'''
  5121.         return _controls_.ListItem_GetAttributes(*args, **kwargs)
  5122.  
  5123.     
  5124.     def HasAttributes(*args, **kwargs):
  5125.         '''HasAttributes(self) -> bool'''
  5126.         return _controls_.ListItem_HasAttributes(*args, **kwargs)
  5127.  
  5128.     
  5129.     def GetTextColour(*args, **kwargs):
  5130.         '''GetTextColour(self) -> Colour'''
  5131.         return _controls_.ListItem_GetTextColour(*args, **kwargs)
  5132.  
  5133.     
  5134.     def GetBackgroundColour(*args, **kwargs):
  5135.         '''GetBackgroundColour(self) -> Colour'''
  5136.         return _controls_.ListItem_GetBackgroundColour(*args, **kwargs)
  5137.  
  5138.     
  5139.     def GetFont(*args, **kwargs):
  5140.         '''GetFont(self) -> Font'''
  5141.         return _controls_.ListItem_GetFont(*args, **kwargs)
  5142.  
  5143.     m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set)
  5144.     m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set)
  5145.     m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set)
  5146.     m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set)
  5147.     m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set)
  5148.     m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set)
  5149.     m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set)
  5150.     m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set)
  5151.     m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set)
  5152.     m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set)
  5153.  
  5154.  
  5155. class ListItemPtr(ListItem):
  5156.     
  5157.     def __init__(self, this):
  5158.         self.this = this
  5159.         if not hasattr(self, 'thisown'):
  5160.             self.thisown = 0
  5161.         
  5162.         self.__class__ = ListItem
  5163.  
  5164.  
  5165. _controls_.ListItem_swigregister(ListItemPtr)
  5166.  
  5167. class ListEvent(_core.NotifyEvent):
  5168.     '''Proxy of C++ ListEvent class'''
  5169.     
  5170.     def __repr__(self):
  5171.         return '<%s.%s; proxy of C++ wxListEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5172.  
  5173.     
  5174.     def __init__(self, *args, **kwargs):
  5175.         '''__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent'''
  5176.         newobj = _controls_.new_ListEvent(*args, **kwargs)
  5177.         self.this = newobj.this
  5178.         self.thisown = 1
  5179.         del newobj.thisown
  5180.  
  5181.     m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set)
  5182.     m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set)
  5183.     m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set)
  5184.     m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set)
  5185.     m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set)
  5186.     m_item = property(_controls_.ListEvent_m_item_get)
  5187.     
  5188.     def GetKeyCode(*args, **kwargs):
  5189.         '''GetKeyCode(self) -> int'''
  5190.         return _controls_.ListEvent_GetKeyCode(*args, **kwargs)
  5191.  
  5192.     GetCode = GetKeyCode
  5193.     
  5194.     def GetIndex(*args, **kwargs):
  5195.         '''GetIndex(self) -> long'''
  5196.         return _controls_.ListEvent_GetIndex(*args, **kwargs)
  5197.  
  5198.     
  5199.     def GetColumn(*args, **kwargs):
  5200.         '''GetColumn(self) -> int'''
  5201.         return _controls_.ListEvent_GetColumn(*args, **kwargs)
  5202.  
  5203.     
  5204.     def GetPoint(*args, **kwargs):
  5205.         '''GetPoint(self) -> Point'''
  5206.         return _controls_.ListEvent_GetPoint(*args, **kwargs)
  5207.  
  5208.     GetPosition = GetPoint
  5209.     
  5210.     def GetLabel(*args, **kwargs):
  5211.         '''GetLabel(self) -> String'''
  5212.         return _controls_.ListEvent_GetLabel(*args, **kwargs)
  5213.  
  5214.     
  5215.     def GetText(*args, **kwargs):
  5216.         '''GetText(self) -> String'''
  5217.         return _controls_.ListEvent_GetText(*args, **kwargs)
  5218.  
  5219.     
  5220.     def GetImage(*args, **kwargs):
  5221.         '''GetImage(self) -> int'''
  5222.         return _controls_.ListEvent_GetImage(*args, **kwargs)
  5223.  
  5224.     
  5225.     def GetData(*args, **kwargs):
  5226.         '''GetData(self) -> long'''
  5227.         return _controls_.ListEvent_GetData(*args, **kwargs)
  5228.  
  5229.     
  5230.     def GetMask(*args, **kwargs):
  5231.         '''GetMask(self) -> long'''
  5232.         return _controls_.ListEvent_GetMask(*args, **kwargs)
  5233.  
  5234.     
  5235.     def GetItem(*args, **kwargs):
  5236.         '''GetItem(self) -> ListItem'''
  5237.         return _controls_.ListEvent_GetItem(*args, **kwargs)
  5238.  
  5239.     
  5240.     def GetCacheFrom(*args, **kwargs):
  5241.         '''GetCacheFrom(self) -> long'''
  5242.         return _controls_.ListEvent_GetCacheFrom(*args, **kwargs)
  5243.  
  5244.     
  5245.     def GetCacheTo(*args, **kwargs):
  5246.         '''GetCacheTo(self) -> long'''
  5247.         return _controls_.ListEvent_GetCacheTo(*args, **kwargs)
  5248.  
  5249.     
  5250.     def IsEditCancelled(*args, **kwargs):
  5251.         '''IsEditCancelled(self) -> bool'''
  5252.         return _controls_.ListEvent_IsEditCancelled(*args, **kwargs)
  5253.  
  5254.     
  5255.     def SetEditCanceled(*args, **kwargs):
  5256.         '''SetEditCanceled(self, bool editCancelled)'''
  5257.         return _controls_.ListEvent_SetEditCanceled(*args, **kwargs)
  5258.  
  5259.  
  5260.  
  5261. class ListEventPtr(ListEvent):
  5262.     
  5263.     def __init__(self, this):
  5264.         self.this = this
  5265.         if not hasattr(self, 'thisown'):
  5266.             self.thisown = 0
  5267.         
  5268.         self.__class__ = ListEvent
  5269.  
  5270.  
  5271. _controls_.ListEvent_swigregister(ListEventPtr)
  5272. wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG
  5273. wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG
  5274. wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
  5275. wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT
  5276. wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM
  5277. wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
  5278. wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED
  5279. wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED
  5280. wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN
  5281. wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM
  5282. wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK
  5283. wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
  5284. wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
  5285. wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
  5286. wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT
  5287. wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
  5288. wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
  5289. wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING
  5290. wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG
  5291. wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED
  5292. wxEVT_COMMAND_LIST_GET_INFO = _controls_.wxEVT_COMMAND_LIST_GET_INFO
  5293. wxEVT_COMMAND_LIST_SET_INFO = _controls_.wxEVT_COMMAND_LIST_SET_INFO
  5294. EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG, 1)
  5295. EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG, 1)
  5296. EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 1)
  5297. EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT, 1)
  5298. EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM, 1)
  5299. EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 1)
  5300. EVT_LIST_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO, 1)
  5301. EVT_LIST_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO, 1)
  5302. EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED, 1)
  5303. EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED, 1)
  5304. EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN, 1)
  5305. EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM, 1)
  5306. EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK, 1)
  5307. EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 1)
  5308. EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1)
  5309. EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 1)
  5310. EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT, 1)
  5311. EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 1)
  5312. EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 1)
  5313. EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING, 1)
  5314. EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG, 1)
  5315. EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED, 1)
  5316. EVT_LIST_GET_INFO = wx._deprecated(EVT_LIST_GET_INFO)
  5317. EVT_LIST_SET_INFO = wx._deprecated(EVT_LIST_SET_INFO)
  5318.  
  5319. class ListCtrl(_core.Control):
  5320.     '''Proxy of C++ ListCtrl class'''
  5321.     
  5322.     def __repr__(self):
  5323.         return '<%s.%s; proxy of C++ wxPyListCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5324.  
  5325.     
  5326.     def __init__(self, *args, **kwargs):
  5327.         '''
  5328.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  5329.             Size size=DefaultSize, long style=LC_ICON, 
  5330.             Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
  5331.         '''
  5332.         newobj = _controls_.new_ListCtrl(*args, **kwargs)
  5333.         self.this = newobj.this
  5334.         self.thisown = 1
  5335.         del newobj.thisown
  5336.         self._setOORInfo(self)
  5337.         self._setCallbackInfo(self, ListCtrl)
  5338.  
  5339.     
  5340.     def Create(*args, **kwargs):
  5341.         '''
  5342.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  5343.             Size size=DefaultSize, long style=LC_ICON, 
  5344.             Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
  5345.  
  5346.         Do the 2nd phase and create the GUI control.
  5347.         '''
  5348.         return _controls_.ListCtrl_Create(*args, **kwargs)
  5349.  
  5350.     
  5351.     def _setCallbackInfo(*args, **kwargs):
  5352.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  5353.         return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs)
  5354.  
  5355.     
  5356.     def SetForegroundColour(*args, **kwargs):
  5357.         '''
  5358.         SetForegroundColour(self, Colour col) -> bool
  5359.  
  5360.         Sets the foreground colour of the window.  Returns True is the colour
  5361.         was changed.  The interpretation of foreground colour is dependent on
  5362.         the window class; it may be the text colour or other colour, or it may
  5363.         not be used at all.
  5364.         '''
  5365.         return _controls_.ListCtrl_SetForegroundColour(*args, **kwargs)
  5366.  
  5367.     
  5368.     def SetBackgroundColour(*args, **kwargs):
  5369.         '''
  5370.         SetBackgroundColour(self, Colour col) -> bool
  5371.  
  5372.         Sets the background colour of the window.  Returns True if the colour
  5373.         was changed.  The background colour is usually painted by the default
  5374.         EVT_ERASE_BACKGROUND event handler function under Windows and
  5375.         automatically under GTK.  Using `wx.NullColour` will reset the window
  5376.         to the default background colour.
  5377.  
  5378.         Note that setting the background colour may not cause an immediate
  5379.         refresh, so you may wish to call `ClearBackground` or `Refresh` after
  5380.         calling this function.
  5381.  
  5382.         Using this function will disable attempts to use themes for this
  5383.         window, if the system supports them.  Use with care since usually the
  5384.         themes represent the appearance chosen by the user to be used for all
  5385.         applications on the system.
  5386.         '''
  5387.         return _controls_.ListCtrl_SetBackgroundColour(*args, **kwargs)
  5388.  
  5389.     
  5390.     def GetColumn(*args, **kwargs):
  5391.         '''GetColumn(self, int col) -> ListItem'''
  5392.         val = _controls_.ListCtrl_GetColumn(*args, **kwargs)
  5393.         if val is not None:
  5394.             val.thisown = 1
  5395.         
  5396.         return val
  5397.  
  5398.     
  5399.     def SetColumn(*args, **kwargs):
  5400.         '''SetColumn(self, int col, ListItem item) -> bool'''
  5401.         return _controls_.ListCtrl_SetColumn(*args, **kwargs)
  5402.  
  5403.     
  5404.     def GetColumnWidth(*args, **kwargs):
  5405.         '''GetColumnWidth(self, int col) -> int'''
  5406.         return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs)
  5407.  
  5408.     
  5409.     def SetColumnWidth(*args, **kwargs):
  5410.         '''SetColumnWidth(self, int col, int width) -> bool'''
  5411.         return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs)
  5412.  
  5413.     
  5414.     def GetCountPerPage(*args, **kwargs):
  5415.         '''GetCountPerPage(self) -> int'''
  5416.         return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs)
  5417.  
  5418.     
  5419.     def GetViewRect(*args, **kwargs):
  5420.         '''GetViewRect(self) -> Rect'''
  5421.         return _controls_.ListCtrl_GetViewRect(*args, **kwargs)
  5422.  
  5423.     
  5424.     def GetEditControl(*args, **kwargs):
  5425.         '''GetEditControl(self) -> TextCtrl'''
  5426.         return _controls_.ListCtrl_GetEditControl(*args, **kwargs)
  5427.  
  5428.     
  5429.     def GetItem(*args, **kwargs):
  5430.         '''GetItem(self, long itemId, int col=0) -> ListItem'''
  5431.         val = _controls_.ListCtrl_GetItem(*args, **kwargs)
  5432.         if val is not None:
  5433.             val.thisown = 1
  5434.         
  5435.         return val
  5436.  
  5437.     
  5438.     def SetItem(*args, **kwargs):
  5439.         '''SetItem(self, ListItem info) -> bool'''
  5440.         return _controls_.ListCtrl_SetItem(*args, **kwargs)
  5441.  
  5442.     
  5443.     def SetStringItem(*args, **kwargs):
  5444.         '''SetStringItem(self, long index, int col, String label, int imageId=-1) -> long'''
  5445.         return _controls_.ListCtrl_SetStringItem(*args, **kwargs)
  5446.  
  5447.     
  5448.     def GetItemState(*args, **kwargs):
  5449.         '''GetItemState(self, long item, long stateMask) -> int'''
  5450.         return _controls_.ListCtrl_GetItemState(*args, **kwargs)
  5451.  
  5452.     
  5453.     def SetItemState(*args, **kwargs):
  5454.         '''SetItemState(self, long item, long state, long stateMask) -> bool'''
  5455.         return _controls_.ListCtrl_SetItemState(*args, **kwargs)
  5456.  
  5457.     
  5458.     def SetItemImage(*args, **kwargs):
  5459.         '''SetItemImage(self, long item, int image, int selImage=-1) -> bool'''
  5460.         return _controls_.ListCtrl_SetItemImage(*args, **kwargs)
  5461.  
  5462.     
  5463.     def SetItemColumnImage(*args, **kwargs):
  5464.         '''SetItemColumnImage(self, long item, long column, int image) -> bool'''
  5465.         return _controls_.ListCtrl_SetItemColumnImage(*args, **kwargs)
  5466.  
  5467.     
  5468.     def GetItemText(*args, **kwargs):
  5469.         '''GetItemText(self, long item) -> String'''
  5470.         return _controls_.ListCtrl_GetItemText(*args, **kwargs)
  5471.  
  5472.     
  5473.     def SetItemText(*args, **kwargs):
  5474.         '''SetItemText(self, long item, String str)'''
  5475.         return _controls_.ListCtrl_SetItemText(*args, **kwargs)
  5476.  
  5477.     
  5478.     def GetItemData(*args, **kwargs):
  5479.         '''GetItemData(self, long item) -> long'''
  5480.         return _controls_.ListCtrl_GetItemData(*args, **kwargs)
  5481.  
  5482.     
  5483.     def SetItemData(*args, **kwargs):
  5484.         '''SetItemData(self, long item, long data) -> bool'''
  5485.         return _controls_.ListCtrl_SetItemData(*args, **kwargs)
  5486.  
  5487.     
  5488.     def GetItemPosition(*args, **kwargs):
  5489.         '''GetItemPosition(self, long item) -> Point'''
  5490.         return _controls_.ListCtrl_GetItemPosition(*args, **kwargs)
  5491.  
  5492.     
  5493.     def GetItemRect(*args, **kwargs):
  5494.         '''GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect'''
  5495.         return _controls_.ListCtrl_GetItemRect(*args, **kwargs)
  5496.  
  5497.     
  5498.     def SetItemPosition(*args, **kwargs):
  5499.         '''SetItemPosition(self, long item, Point pos) -> bool'''
  5500.         return _controls_.ListCtrl_SetItemPosition(*args, **kwargs)
  5501.  
  5502.     
  5503.     def GetItemCount(*args, **kwargs):
  5504.         '''GetItemCount(self) -> int'''
  5505.         return _controls_.ListCtrl_GetItemCount(*args, **kwargs)
  5506.  
  5507.     
  5508.     def GetColumnCount(*args, **kwargs):
  5509.         '''GetColumnCount(self) -> int'''
  5510.         return _controls_.ListCtrl_GetColumnCount(*args, **kwargs)
  5511.  
  5512.     
  5513.     def GetItemSpacing(*args, **kwargs):
  5514.         '''GetItemSpacing(self) -> Size'''
  5515.         return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs)
  5516.  
  5517.     
  5518.     def GetSelectedItemCount(*args, **kwargs):
  5519.         '''GetSelectedItemCount(self) -> int'''
  5520.         return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs)
  5521.  
  5522.     
  5523.     def GetTextColour(*args, **kwargs):
  5524.         '''GetTextColour(self) -> Colour'''
  5525.         return _controls_.ListCtrl_GetTextColour(*args, **kwargs)
  5526.  
  5527.     
  5528.     def SetTextColour(*args, **kwargs):
  5529.         '''SetTextColour(self, Colour col)'''
  5530.         return _controls_.ListCtrl_SetTextColour(*args, **kwargs)
  5531.  
  5532.     
  5533.     def GetTopItem(*args, **kwargs):
  5534.         '''GetTopItem(self) -> long'''
  5535.         return _controls_.ListCtrl_GetTopItem(*args, **kwargs)
  5536.  
  5537.     
  5538.     def SetSingleStyle(*args, **kwargs):
  5539.         '''SetSingleStyle(self, long style, bool add=True)'''
  5540.         return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs)
  5541.  
  5542.     
  5543.     def SetWindowStyleFlag(*args, **kwargs):
  5544.         '''
  5545.         SetWindowStyleFlag(self, long style)
  5546.  
  5547.         Sets the style of the window. Please note that some styles cannot be
  5548.         changed after the window creation and that Refresh() might need to be
  5549.         called after changing the others for the change to take place
  5550.         immediately.
  5551.         '''
  5552.         return _controls_.ListCtrl_SetWindowStyleFlag(*args, **kwargs)
  5553.  
  5554.     
  5555.     def GetNextItem(*args, **kwargs):
  5556.         '''GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long'''
  5557.         return _controls_.ListCtrl_GetNextItem(*args, **kwargs)
  5558.  
  5559.     
  5560.     def GetImageList(*args, **kwargs):
  5561.         '''GetImageList(self, int which) -> ImageList'''
  5562.         return _controls_.ListCtrl_GetImageList(*args, **kwargs)
  5563.  
  5564.     
  5565.     def SetImageList(*args, **kwargs):
  5566.         '''SetImageList(self, ImageList imageList, int which)'''
  5567.         return _controls_.ListCtrl_SetImageList(*args, **kwargs)
  5568.  
  5569.     
  5570.     def AssignImageList(*args, **kwargs):
  5571.         '''AssignImageList(self, ImageList imageList, int which)'''
  5572.         return _controls_.ListCtrl_AssignImageList(*args, **kwargs)
  5573.  
  5574.     
  5575.     def InReportView(*args, **kwargs):
  5576.         '''InReportView(self) -> bool'''
  5577.         return _controls_.ListCtrl_InReportView(*args, **kwargs)
  5578.  
  5579.     
  5580.     def IsVirtual(*args, **kwargs):
  5581.         '''IsVirtual(self) -> bool'''
  5582.         return _controls_.ListCtrl_IsVirtual(*args, **kwargs)
  5583.  
  5584.     
  5585.     def RefreshItem(*args, **kwargs):
  5586.         '''RefreshItem(self, long item)'''
  5587.         return _controls_.ListCtrl_RefreshItem(*args, **kwargs)
  5588.  
  5589.     
  5590.     def RefreshItems(*args, **kwargs):
  5591.         '''RefreshItems(self, long itemFrom, long itemTo)'''
  5592.         return _controls_.ListCtrl_RefreshItems(*args, **kwargs)
  5593.  
  5594.     
  5595.     def Arrange(*args, **kwargs):
  5596.         '''Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool'''
  5597.         return _controls_.ListCtrl_Arrange(*args, **kwargs)
  5598.  
  5599.     
  5600.     def DeleteItem(*args, **kwargs):
  5601.         '''DeleteItem(self, long item) -> bool'''
  5602.         return _controls_.ListCtrl_DeleteItem(*args, **kwargs)
  5603.  
  5604.     
  5605.     def DeleteAllItems(*args, **kwargs):
  5606.         '''DeleteAllItems(self) -> bool'''
  5607.         return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs)
  5608.  
  5609.     
  5610.     def DeleteColumn(*args, **kwargs):
  5611.         '''DeleteColumn(self, int col) -> bool'''
  5612.         return _controls_.ListCtrl_DeleteColumn(*args, **kwargs)
  5613.  
  5614.     
  5615.     def DeleteAllColumns(*args, **kwargs):
  5616.         '''DeleteAllColumns(self) -> bool'''
  5617.         return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs)
  5618.  
  5619.     
  5620.     def ClearAll(*args, **kwargs):
  5621.         '''ClearAll(self)'''
  5622.         return _controls_.ListCtrl_ClearAll(*args, **kwargs)
  5623.  
  5624.     
  5625.     def EditLabel(*args, **kwargs):
  5626.         '''EditLabel(self, long item) -> TextCtrl'''
  5627.         return _controls_.ListCtrl_EditLabel(*args, **kwargs)
  5628.  
  5629.     
  5630.     def EndEditLabel(*args, **kwargs):
  5631.         '''EndEditLabel(self, bool cancel) -> bool'''
  5632.         return _controls_.ListCtrl_EndEditLabel(*args, **kwargs)
  5633.  
  5634.     
  5635.     def EnsureVisible(*args, **kwargs):
  5636.         '''EnsureVisible(self, long item) -> bool'''
  5637.         return _controls_.ListCtrl_EnsureVisible(*args, **kwargs)
  5638.  
  5639.     
  5640.     def FindItem(*args, **kwargs):
  5641.         '''FindItem(self, long start, String str, bool partial=False) -> long'''
  5642.         return _controls_.ListCtrl_FindItem(*args, **kwargs)
  5643.  
  5644.     
  5645.     def FindItemData(*args, **kwargs):
  5646.         '''FindItemData(self, long start, long data) -> long'''
  5647.         return _controls_.ListCtrl_FindItemData(*args, **kwargs)
  5648.  
  5649.     
  5650.     def FindItemAtPos(*args, **kwargs):
  5651.         '''FindItemAtPos(self, long start, Point pt, int direction) -> long'''
  5652.         return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs)
  5653.  
  5654.     
  5655.     def HitTest(*args, **kwargs):
  5656.         '''
  5657.         HitTest(Point point) -> (item, where)
  5658.  
  5659.         Determines which item (if any) is at the specified point, giving
  5660.          in the second return value (see wx.LIST_HITTEST flags.)
  5661.         '''
  5662.         return _controls_.ListCtrl_HitTest(*args, **kwargs)
  5663.  
  5664.     
  5665.     def InsertItem(*args, **kwargs):
  5666.         '''InsertItem(self, ListItem info) -> long'''
  5667.         return _controls_.ListCtrl_InsertItem(*args, **kwargs)
  5668.  
  5669.     
  5670.     def InsertStringItem(*args, **kwargs):
  5671.         '''InsertStringItem(self, long index, String label, int imageIndex=-1) -> long'''
  5672.         return _controls_.ListCtrl_InsertStringItem(*args, **kwargs)
  5673.  
  5674.     
  5675.     def InsertImageItem(*args, **kwargs):
  5676.         '''InsertImageItem(self, long index, int imageIndex) -> long'''
  5677.         return _controls_.ListCtrl_InsertImageItem(*args, **kwargs)
  5678.  
  5679.     
  5680.     def InsertImageStringItem(*args, **kwargs):
  5681.         '''InsertImageStringItem(self, long index, String label, int imageIndex) -> long'''
  5682.         return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs)
  5683.  
  5684.     
  5685.     def InsertColumnItem(*args, **kwargs):
  5686.         '''InsertColumnItem(self, long col, ListItem info) -> long'''
  5687.         return _controls_.ListCtrl_InsertColumnItem(*args, **kwargs)
  5688.  
  5689.     InsertColumnInfo = InsertColumnItem
  5690.     
  5691.     def InsertColumn(*args, **kwargs):
  5692.         '''
  5693.         InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, 
  5694.             int width=-1) -> long
  5695.         '''
  5696.         return _controls_.ListCtrl_InsertColumn(*args, **kwargs)
  5697.  
  5698.     
  5699.     def SetItemCount(*args, **kwargs):
  5700.         '''SetItemCount(self, long count)'''
  5701.         return _controls_.ListCtrl_SetItemCount(*args, **kwargs)
  5702.  
  5703.     
  5704.     def ScrollList(*args, **kwargs):
  5705.         '''ScrollList(self, int dx, int dy) -> bool'''
  5706.         return _controls_.ListCtrl_ScrollList(*args, **kwargs)
  5707.  
  5708.     
  5709.     def SetItemTextColour(*args, **kwargs):
  5710.         '''SetItemTextColour(self, long item, Colour col)'''
  5711.         return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs)
  5712.  
  5713.     
  5714.     def GetItemTextColour(*args, **kwargs):
  5715.         '''GetItemTextColour(self, long item) -> Colour'''
  5716.         return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs)
  5717.  
  5718.     
  5719.     def SetItemBackgroundColour(*args, **kwargs):
  5720.         '''SetItemBackgroundColour(self, long item, Colour col)'''
  5721.         return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs)
  5722.  
  5723.     
  5724.     def GetItemBackgroundColour(*args, **kwargs):
  5725.         '''GetItemBackgroundColour(self, long item) -> Colour'''
  5726.         return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs)
  5727.  
  5728.     
  5729.     def SetItemFont(*args, **kwargs):
  5730.         '''SetItemFont(self, long item, Font f)'''
  5731.         return _controls_.ListCtrl_SetItemFont(*args, **kwargs)
  5732.  
  5733.     
  5734.     def GetItemFont(*args, **kwargs):
  5735.         '''GetItemFont(self, long item) -> Font'''
  5736.         return _controls_.ListCtrl_GetItemFont(*args, **kwargs)
  5737.  
  5738.     
  5739.     def Select(self, idx, on = 1):
  5740.         '''[de]select an item'''
  5741.         if on:
  5742.             state = wx.LIST_STATE_SELECTED
  5743.         else:
  5744.             state = 0
  5745.         self.SetItemState(idx, state, wx.LIST_STATE_SELECTED)
  5746.  
  5747.     
  5748.     def Focus(self, idx):
  5749.         '''Focus and show the given item'''
  5750.         self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED)
  5751.         self.EnsureVisible(idx)
  5752.  
  5753.     
  5754.     def GetFocusedItem(self):
  5755.         '''get the currently focused item or -1 if none'''
  5756.         return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED)
  5757.  
  5758.     
  5759.     def GetFirstSelected(self, *args):
  5760.         '''return first selected item, or -1 when none'''
  5761.         return self.GetNextSelected(-1)
  5762.  
  5763.     
  5764.     def GetNextSelected(self, item):
  5765.         '''return subsequent selected items, or -1 when no more'''
  5766.         return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED)
  5767.  
  5768.     
  5769.     def IsSelected(self, idx):
  5770.         '''return True if the item is selected'''
  5771.         return self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED != 0
  5772.  
  5773.     
  5774.     def SetColumnImage(self, col, image):
  5775.         item = self.GetColumn(col)
  5776.         item.SetMask(wx.LIST_MASK_STATE | wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_DATA | wx.LIST_SET_ITEM | wx.LIST_MASK_WIDTH | wx.LIST_MASK_FORMAT)
  5777.         item.SetImage(image)
  5778.         self.SetColumn(col, item)
  5779.  
  5780.     
  5781.     def ClearColumnImage(self, col):
  5782.         self.SetColumnImage(col, -1)
  5783.  
  5784.     
  5785.     def Append(self, entry):
  5786.         '''Append an item to the list control.  The entry parameter should be a
  5787.            sequence with an item for each column'''
  5788.         if len(entry):
  5789.             if wx.USE_UNICODE:
  5790.                 cvtfunc = unicode
  5791.             else:
  5792.                 cvtfunc = str
  5793.             pos = self.GetItemCount()
  5794.             self.InsertStringItem(pos, cvtfunc(entry[0]))
  5795.             for i in range(1, len(entry)):
  5796.                 self.SetStringItem(pos, i, cvtfunc(entry[i]))
  5797.             
  5798.             return pos
  5799.         
  5800.  
  5801.     
  5802.     def SortItems(*args, **kwargs):
  5803.         '''SortItems(self, PyObject func) -> bool'''
  5804.         return _controls_.ListCtrl_SortItems(*args, **kwargs)
  5805.  
  5806.     
  5807.     def GetMainWindow(*args, **kwargs):
  5808.         '''GetMainWindow(self) -> Window'''
  5809.         return _controls_.ListCtrl_GetMainWindow(*args, **kwargs)
  5810.  
  5811.     
  5812.     def GetClassDefaultAttributes(*args, **kwargs):
  5813.         """
  5814.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  5815.  
  5816.         Get the default attributes for this class.  This is useful if you want
  5817.         to use the same font or colour in your own control as in a standard
  5818.         control -- which is a much better idea than hard coding specific
  5819.         colours or fonts which might look completely out of place on the
  5820.         user's system, especially if it uses themes.
  5821.  
  5822.         The variant parameter is only relevant under Mac currently and is
  5823.         ignore under other platforms. Under Mac, it will change the size of
  5824.         the returned font. See `wx.Window.SetWindowVariant` for more about
  5825.         this.
  5826.         """
  5827.         return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
  5828.  
  5829.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  5830.  
  5831.  
  5832. class ListCtrlPtr(ListCtrl):
  5833.     
  5834.     def __init__(self, this):
  5835.         self.this = this
  5836.         if not hasattr(self, 'thisown'):
  5837.             self.thisown = 0
  5838.         
  5839.         self.__class__ = ListCtrl
  5840.  
  5841.  
  5842. _controls_.ListCtrl_swigregister(ListCtrlPtr)
  5843.  
  5844. def PreListCtrl(*args, **kwargs):
  5845.     '''PreListCtrl() -> ListCtrl'''
  5846.     val = _controls_.new_PreListCtrl(*args, **kwargs)
  5847.     val.thisown = 1
  5848.     return val
  5849.  
  5850.  
  5851. def ListCtrl_GetClassDefaultAttributes(*args, **kwargs):
  5852.     """
  5853.     ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  5854.  
  5855.     Get the default attributes for this class.  This is useful if you want
  5856.     to use the same font or colour in your own control as in a standard
  5857.     control -- which is a much better idea than hard coding specific
  5858.     colours or fonts which might look completely out of place on the
  5859.     user's system, especially if it uses themes.
  5860.  
  5861.     The variant parameter is only relevant under Mac currently and is
  5862.     ignore under other platforms. Under Mac, it will change the size of
  5863.     the returned font. See `wx.Window.SetWindowVariant` for more about
  5864.     this.
  5865.     """
  5866.     return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
  5867.  
  5868.  
  5869. class ListView(ListCtrl):
  5870.     '''Proxy of C++ ListView class'''
  5871.     
  5872.     def __repr__(self):
  5873.         return '<%s.%s; proxy of C++ wxListView instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5874.  
  5875.     
  5876.     def __init__(self, *args, **kwargs):
  5877.         '''
  5878.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  5879.             Size size=DefaultSize, long style=LC_REPORT, 
  5880.             Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
  5881.         '''
  5882.         newobj = _controls_.new_ListView(*args, **kwargs)
  5883.         self.this = newobj.this
  5884.         self.thisown = 1
  5885.         del newobj.thisown
  5886.         self._setOORInfo(self)
  5887.  
  5888.     
  5889.     def Create(*args, **kwargs):
  5890.         '''
  5891.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  5892.             Size size=DefaultSize, long style=LC_REPORT, 
  5893.             Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
  5894.  
  5895.         Do the 2nd phase and create the GUI control.
  5896.         '''
  5897.         return _controls_.ListView_Create(*args, **kwargs)
  5898.  
  5899.     
  5900.     def Select(*args, **kwargs):
  5901.         '''Select(self, long n, bool on=True)'''
  5902.         return _controls_.ListView_Select(*args, **kwargs)
  5903.  
  5904.     
  5905.     def Focus(*args, **kwargs):
  5906.         '''Focus(self, long index)'''
  5907.         return _controls_.ListView_Focus(*args, **kwargs)
  5908.  
  5909.     
  5910.     def GetFocusedItem(*args, **kwargs):
  5911.         '''GetFocusedItem(self) -> long'''
  5912.         return _controls_.ListView_GetFocusedItem(*args, **kwargs)
  5913.  
  5914.     
  5915.     def GetNextSelected(*args, **kwargs):
  5916.         '''GetNextSelected(self, long item) -> long'''
  5917.         return _controls_.ListView_GetNextSelected(*args, **kwargs)
  5918.  
  5919.     
  5920.     def GetFirstSelected(*args, **kwargs):
  5921.         '''GetFirstSelected(self) -> long'''
  5922.         return _controls_.ListView_GetFirstSelected(*args, **kwargs)
  5923.  
  5924.     
  5925.     def IsSelected(*args, **kwargs):
  5926.         '''IsSelected(self, long index) -> bool'''
  5927.         return _controls_.ListView_IsSelected(*args, **kwargs)
  5928.  
  5929.     
  5930.     def SetColumnImage(*args, **kwargs):
  5931.         '''SetColumnImage(self, int col, int image)'''
  5932.         return _controls_.ListView_SetColumnImage(*args, **kwargs)
  5933.  
  5934.     
  5935.     def ClearColumnImage(*args, **kwargs):
  5936.         '''ClearColumnImage(self, int col)'''
  5937.         return _controls_.ListView_ClearColumnImage(*args, **kwargs)
  5938.  
  5939.  
  5940.  
  5941. class ListViewPtr(ListView):
  5942.     
  5943.     def __init__(self, this):
  5944.         self.this = this
  5945.         if not hasattr(self, 'thisown'):
  5946.             self.thisown = 0
  5947.         
  5948.         self.__class__ = ListView
  5949.  
  5950.  
  5951. _controls_.ListView_swigregister(ListViewPtr)
  5952.  
  5953. def PreListView(*args, **kwargs):
  5954.     '''PreListView() -> ListView'''
  5955.     val = _controls_.new_PreListView(*args, **kwargs)
  5956.     val.thisown = 1
  5957.     return val
  5958.  
  5959. TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS
  5960. TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS
  5961. TR_NO_LINES = _controls_.TR_NO_LINES
  5962. TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT
  5963. TR_SINGLE = _controls_.TR_SINGLE
  5964. TR_MULTIPLE = _controls_.TR_MULTIPLE
  5965. TR_EXTENDED = _controls_.TR_EXTENDED
  5966. TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT
  5967. TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS
  5968. TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT
  5969. TR_ROW_LINES = _controls_.TR_ROW_LINES
  5970. TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT
  5971. TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE
  5972. TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS
  5973. TR_MAC_BUTTONS = _controls_.TR_MAC_BUTTONS
  5974. TR_AQUA_BUTTONS = _controls_.TR_AQUA_BUTTONS
  5975. TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal
  5976. TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected
  5977. TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded
  5978. TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded
  5979. TreeItemIcon_Max = _controls_.TreeItemIcon_Max
  5980. TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE
  5981. TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW
  5982. TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE
  5983. TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON
  5984. TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON
  5985. TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT
  5986. TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL
  5987. TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT
  5988. TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON
  5989. TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT
  5990. TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT
  5991. TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART
  5992. TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART
  5993. TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM
  5994.  
  5995. class TreeItemId(object):
  5996.     '''Proxy of C++ TreeItemId class'''
  5997.     
  5998.     def __repr__(self):
  5999.         return '<%s.%s; proxy of C++ wxTreeItemId instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6000.  
  6001.     
  6002.     def __init__(self, *args, **kwargs):
  6003.         '''__init__(self) -> TreeItemId'''
  6004.         newobj = _controls_.new_TreeItemId(*args, **kwargs)
  6005.         self.this = newobj.this
  6006.         self.thisown = 1
  6007.         del newobj.thisown
  6008.  
  6009.     
  6010.     def __del__(self, destroy = _controls_.delete_TreeItemId):
  6011.         '''__del__(self)'''
  6012.         
  6013.         try:
  6014.             if self.thisown:
  6015.                 destroy(self)
  6016.         except:
  6017.             pass
  6018.  
  6019.  
  6020.     
  6021.     def IsOk(*args, **kwargs):
  6022.         '''IsOk(self) -> bool'''
  6023.         return _controls_.TreeItemId_IsOk(*args, **kwargs)
  6024.  
  6025.     
  6026.     def __eq__(*args, **kwargs):
  6027.         '''__eq__(self, TreeItemId other) -> bool'''
  6028.         return _controls_.TreeItemId___eq__(*args, **kwargs)
  6029.  
  6030.     
  6031.     def __ne__(*args, **kwargs):
  6032.         '''__ne__(self, TreeItemId other) -> bool'''
  6033.         return _controls_.TreeItemId___ne__(*args, **kwargs)
  6034.  
  6035.     m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set)
  6036.     Ok = IsOk
  6037.     
  6038.     def __nonzero__(self):
  6039.         return self.IsOk()
  6040.  
  6041.  
  6042.  
  6043. class TreeItemIdPtr(TreeItemId):
  6044.     
  6045.     def __init__(self, this):
  6046.         self.this = this
  6047.         if not hasattr(self, 'thisown'):
  6048.             self.thisown = 0
  6049.         
  6050.         self.__class__ = TreeItemId
  6051.  
  6052.  
  6053. _controls_.TreeItemId_swigregister(TreeItemIdPtr)
  6054. TreeCtrlNameStr = cvar.TreeCtrlNameStr
  6055.  
  6056. class TreeItemData(object):
  6057.     '''Proxy of C++ TreeItemData class'''
  6058.     
  6059.     def __repr__(self):
  6060.         return '<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6061.  
  6062.     
  6063.     def __init__(self, *args, **kwargs):
  6064.         '''__init__(self, PyObject obj=None) -> TreeItemData'''
  6065.         newobj = _controls_.new_TreeItemData(*args, **kwargs)
  6066.         self.this = newobj.this
  6067.         self.thisown = 1
  6068.         del newobj.thisown
  6069.  
  6070.     
  6071.     def GetData(*args, **kwargs):
  6072.         '''GetData(self) -> PyObject'''
  6073.         return _controls_.TreeItemData_GetData(*args, **kwargs)
  6074.  
  6075.     
  6076.     def SetData(*args, **kwargs):
  6077.         '''SetData(self, PyObject obj)'''
  6078.         return _controls_.TreeItemData_SetData(*args, **kwargs)
  6079.  
  6080.     
  6081.     def GetId(*args, **kwargs):
  6082.         '''GetId(self) -> TreeItemId'''
  6083.         return _controls_.TreeItemData_GetId(*args, **kwargs)
  6084.  
  6085.     
  6086.     def SetId(*args, **kwargs):
  6087.         '''SetId(self, TreeItemId id)'''
  6088.         return _controls_.TreeItemData_SetId(*args, **kwargs)
  6089.  
  6090.     
  6091.     def Destroy(*args, **kwargs):
  6092.         '''Destroy(self)'''
  6093.         return _controls_.TreeItemData_Destroy(*args, **kwargs)
  6094.  
  6095.  
  6096.  
  6097. class TreeItemDataPtr(TreeItemData):
  6098.     
  6099.     def __init__(self, this):
  6100.         self.this = this
  6101.         if not hasattr(self, 'thisown'):
  6102.             self.thisown = 0
  6103.         
  6104.         self.__class__ = TreeItemData
  6105.  
  6106.  
  6107. _controls_.TreeItemData_swigregister(TreeItemDataPtr)
  6108. wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG
  6109. wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG
  6110. wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
  6111. wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT
  6112. wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM
  6113. wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO
  6114. wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO
  6115. wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED
  6116. wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING
  6117. wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
  6118. wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
  6119. wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED
  6120. wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING
  6121. wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN
  6122. wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
  6123. wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
  6124. wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
  6125. wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG
  6126. wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
  6127. wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
  6128. wxEVT_COMMAND_TREE_ITEM_MENU = _controls_.wxEVT_COMMAND_TREE_ITEM_MENU
  6129. EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG, 1)
  6130. EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG, 1)
  6131. EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 1)
  6132. EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT, 1)
  6133. EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM, 1)
  6134. EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO, 1)
  6135. EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO, 1)
  6136. EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED, 1)
  6137. EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING, 1)
  6138. EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 1)
  6139. EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 1)
  6140. EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED, 1)
  6141. EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING, 1)
  6142. EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN, 1)
  6143. EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 1)
  6144. EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 1)
  6145. EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1)
  6146. EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG, 1)
  6147. EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1)
  6148. EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1)
  6149. EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, 1)
  6150.  
  6151. class TreeEvent(_core.NotifyEvent):
  6152.     '''Proxy of C++ TreeEvent class'''
  6153.     
  6154.     def __repr__(self):
  6155.         return '<%s.%s; proxy of C++ wxTreeEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6156.  
  6157.     
  6158.     def __init__(self, *args, **kwargs):
  6159.         '''__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent'''
  6160.         newobj = _controls_.new_TreeEvent(*args, **kwargs)
  6161.         self.this = newobj.this
  6162.         self.thisown = 1
  6163.         del newobj.thisown
  6164.  
  6165.     
  6166.     def GetItem(*args, **kwargs):
  6167.         '''GetItem(self) -> TreeItemId'''
  6168.         return _controls_.TreeEvent_GetItem(*args, **kwargs)
  6169.  
  6170.     
  6171.     def SetItem(*args, **kwargs):
  6172.         '''SetItem(self, TreeItemId item)'''
  6173.         return _controls_.TreeEvent_SetItem(*args, **kwargs)
  6174.  
  6175.     
  6176.     def GetOldItem(*args, **kwargs):
  6177.         '''GetOldItem(self) -> TreeItemId'''
  6178.         return _controls_.TreeEvent_GetOldItem(*args, **kwargs)
  6179.  
  6180.     
  6181.     def SetOldItem(*args, **kwargs):
  6182.         '''SetOldItem(self, TreeItemId item)'''
  6183.         return _controls_.TreeEvent_SetOldItem(*args, **kwargs)
  6184.  
  6185.     
  6186.     def GetPoint(*args, **kwargs):
  6187.         '''GetPoint(self) -> Point'''
  6188.         return _controls_.TreeEvent_GetPoint(*args, **kwargs)
  6189.  
  6190.     
  6191.     def SetPoint(*args, **kwargs):
  6192.         '''SetPoint(self, Point pt)'''
  6193.         return _controls_.TreeEvent_SetPoint(*args, **kwargs)
  6194.  
  6195.     
  6196.     def GetKeyEvent(*args, **kwargs):
  6197.         '''GetKeyEvent(self) -> KeyEvent'''
  6198.         return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs)
  6199.  
  6200.     
  6201.     def GetKeyCode(*args, **kwargs):
  6202.         '''GetKeyCode(self) -> int'''
  6203.         return _controls_.TreeEvent_GetKeyCode(*args, **kwargs)
  6204.  
  6205.     
  6206.     def SetKeyEvent(*args, **kwargs):
  6207.         '''SetKeyEvent(self, KeyEvent evt)'''
  6208.         return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs)
  6209.  
  6210.     
  6211.     def GetLabel(*args, **kwargs):
  6212.         '''GetLabel(self) -> String'''
  6213.         return _controls_.TreeEvent_GetLabel(*args, **kwargs)
  6214.  
  6215.     
  6216.     def SetLabel(*args, **kwargs):
  6217.         '''SetLabel(self, String label)'''
  6218.         return _controls_.TreeEvent_SetLabel(*args, **kwargs)
  6219.  
  6220.     
  6221.     def IsEditCancelled(*args, **kwargs):
  6222.         '''IsEditCancelled(self) -> bool'''
  6223.         return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs)
  6224.  
  6225.     
  6226.     def SetEditCanceled(*args, **kwargs):
  6227.         '''SetEditCanceled(self, bool editCancelled)'''
  6228.         return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs)
  6229.  
  6230.     
  6231.     def SetToolTip(*args, **kwargs):
  6232.         '''SetToolTip(self, String toolTip)'''
  6233.         return _controls_.TreeEvent_SetToolTip(*args, **kwargs)
  6234.  
  6235.     
  6236.     def GetToolTip(*args, **kwargs):
  6237.         '''GetToolTip(self) -> String'''
  6238.         return _controls_.TreeEvent_GetToolTip(*args, **kwargs)
  6239.  
  6240.  
  6241.  
  6242. class TreeEventPtr(TreeEvent):
  6243.     
  6244.     def __init__(self, this):
  6245.         self.this = this
  6246.         if not hasattr(self, 'thisown'):
  6247.             self.thisown = 0
  6248.         
  6249.         self.__class__ = TreeEvent
  6250.  
  6251.  
  6252. _controls_.TreeEvent_swigregister(TreeEventPtr)
  6253.  
  6254. class TreeCtrl(_core.Control):
  6255.     '''Proxy of C++ TreeCtrl class'''
  6256.     
  6257.     def __repr__(self):
  6258.         return '<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6259.  
  6260.     
  6261.     def __init__(self, *args, **kwargs):
  6262.         '''
  6263.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  6264.             Size size=DefaultSize, long style=TR_DEFAULT_STYLE, 
  6265.             Validator validator=DefaultValidator, 
  6266.             String name=TreeCtrlNameStr) -> TreeCtrl
  6267.         '''
  6268.         newobj = _controls_.new_TreeCtrl(*args, **kwargs)
  6269.         self.this = newobj.this
  6270.         self.thisown = 1
  6271.         del newobj.thisown
  6272.         self._setOORInfo(self)
  6273.         self._setCallbackInfo(self, TreeCtrl)
  6274.  
  6275.     
  6276.     def Create(*args, **kwargs):
  6277.         '''
  6278.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  6279.             Size size=DefaultSize, long style=TR_DEFAULT_STYLE, 
  6280.             Validator validator=DefaultValidator, 
  6281.             String name=TreeCtrlNameStr) -> bool
  6282.  
  6283.         Do the 2nd phase and create the GUI control.
  6284.         '''
  6285.         return _controls_.TreeCtrl_Create(*args, **kwargs)
  6286.  
  6287.     
  6288.     def _setCallbackInfo(*args, **kwargs):
  6289.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6290.         return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs)
  6291.  
  6292.     
  6293.     def GetCount(*args, **kwargs):
  6294.         '''GetCount(self) -> size_t'''
  6295.         return _controls_.TreeCtrl_GetCount(*args, **kwargs)
  6296.  
  6297.     
  6298.     def GetIndent(*args, **kwargs):
  6299.         '''GetIndent(self) -> unsigned int'''
  6300.         return _controls_.TreeCtrl_GetIndent(*args, **kwargs)
  6301.  
  6302.     
  6303.     def SetIndent(*args, **kwargs):
  6304.         '''SetIndent(self, unsigned int indent)'''
  6305.         return _controls_.TreeCtrl_SetIndent(*args, **kwargs)
  6306.  
  6307.     
  6308.     def GetSpacing(*args, **kwargs):
  6309.         '''GetSpacing(self) -> unsigned int'''
  6310.         return _controls_.TreeCtrl_GetSpacing(*args, **kwargs)
  6311.  
  6312.     
  6313.     def SetSpacing(*args, **kwargs):
  6314.         '''SetSpacing(self, unsigned int spacing)'''
  6315.         return _controls_.TreeCtrl_SetSpacing(*args, **kwargs)
  6316.  
  6317.     
  6318.     def GetImageList(*args, **kwargs):
  6319.         '''GetImageList(self) -> ImageList'''
  6320.         return _controls_.TreeCtrl_GetImageList(*args, **kwargs)
  6321.  
  6322.     
  6323.     def GetStateImageList(*args, **kwargs):
  6324.         '''GetStateImageList(self) -> ImageList'''
  6325.         return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs)
  6326.  
  6327.     
  6328.     def SetImageList(*args, **kwargs):
  6329.         '''SetImageList(self, ImageList imageList)'''
  6330.         return _controls_.TreeCtrl_SetImageList(*args, **kwargs)
  6331.  
  6332.     
  6333.     def SetStateImageList(*args, **kwargs):
  6334.         '''SetStateImageList(self, ImageList imageList)'''
  6335.         return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs)
  6336.  
  6337.     
  6338.     def AssignImageList(*args, **kwargs):
  6339.         '''AssignImageList(self, ImageList imageList)'''
  6340.         return _controls_.TreeCtrl_AssignImageList(*args, **kwargs)
  6341.  
  6342.     
  6343.     def AssignStateImageList(*args, **kwargs):
  6344.         '''AssignStateImageList(self, ImageList imageList)'''
  6345.         return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs)
  6346.  
  6347.     
  6348.     def GetItemText(*args, **kwargs):
  6349.         '''GetItemText(self, TreeItemId item) -> String'''
  6350.         return _controls_.TreeCtrl_GetItemText(*args, **kwargs)
  6351.  
  6352.     
  6353.     def GetItemImage(*args, **kwargs):
  6354.         '''GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int'''
  6355.         return _controls_.TreeCtrl_GetItemImage(*args, **kwargs)
  6356.  
  6357.     
  6358.     def GetItemData(*args, **kwargs):
  6359.         '''GetItemData(self, TreeItemId item) -> TreeItemData'''
  6360.         return _controls_.TreeCtrl_GetItemData(*args, **kwargs)
  6361.  
  6362.     
  6363.     def GetItemPyData(*args, **kwargs):
  6364.         '''GetItemPyData(self, TreeItemId item) -> PyObject'''
  6365.         return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs)
  6366.  
  6367.     GetPyData = GetItemPyData
  6368.     
  6369.     def GetItemTextColour(*args, **kwargs):
  6370.         '''GetItemTextColour(self, TreeItemId item) -> Colour'''
  6371.         return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs)
  6372.  
  6373.     
  6374.     def GetItemBackgroundColour(*args, **kwargs):
  6375.         '''GetItemBackgroundColour(self, TreeItemId item) -> Colour'''
  6376.         return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs)
  6377.  
  6378.     
  6379.     def GetItemFont(*args, **kwargs):
  6380.         '''GetItemFont(self, TreeItemId item) -> Font'''
  6381.         return _controls_.TreeCtrl_GetItemFont(*args, **kwargs)
  6382.  
  6383.     
  6384.     def SetItemText(*args, **kwargs):
  6385.         '''SetItemText(self, TreeItemId item, String text)'''
  6386.         return _controls_.TreeCtrl_SetItemText(*args, **kwargs)
  6387.  
  6388.     
  6389.     def SetItemImage(*args, **kwargs):
  6390.         '''SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)'''
  6391.         return _controls_.TreeCtrl_SetItemImage(*args, **kwargs)
  6392.  
  6393.     
  6394.     def SetItemData(*args, **kwargs):
  6395.         '''SetItemData(self, TreeItemId item, TreeItemData data)'''
  6396.         return _controls_.TreeCtrl_SetItemData(*args, **kwargs)
  6397.  
  6398.     
  6399.     def SetItemPyData(*args, **kwargs):
  6400.         '''SetItemPyData(self, TreeItemId item, PyObject obj)'''
  6401.         return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs)
  6402.  
  6403.     SetPyData = SetItemPyData
  6404.     
  6405.     def SetItemHasChildren(*args, **kwargs):
  6406.         '''SetItemHasChildren(self, TreeItemId item, bool has=True)'''
  6407.         return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs)
  6408.  
  6409.     
  6410.     def SetItemBold(*args, **kwargs):
  6411.         '''SetItemBold(self, TreeItemId item, bool bold=True)'''
  6412.         return _controls_.TreeCtrl_SetItemBold(*args, **kwargs)
  6413.  
  6414.     
  6415.     def SetItemDropHighlight(*args, **kwargs):
  6416.         '''SetItemDropHighlight(self, TreeItemId item, bool highlight=True)'''
  6417.         return _controls_.TreeCtrl_SetItemDropHighlight(*args, **kwargs)
  6418.  
  6419.     
  6420.     def SetItemTextColour(*args, **kwargs):
  6421.         '''SetItemTextColour(self, TreeItemId item, Colour col)'''
  6422.         return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs)
  6423.  
  6424.     
  6425.     def SetItemBackgroundColour(*args, **kwargs):
  6426.         '''SetItemBackgroundColour(self, TreeItemId item, Colour col)'''
  6427.         return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs)
  6428.  
  6429.     
  6430.     def SetItemFont(*args, **kwargs):
  6431.         '''SetItemFont(self, TreeItemId item, Font font)'''
  6432.         return _controls_.TreeCtrl_SetItemFont(*args, **kwargs)
  6433.  
  6434.     
  6435.     def IsVisible(*args, **kwargs):
  6436.         '''IsVisible(self, TreeItemId item) -> bool'''
  6437.         return _controls_.TreeCtrl_IsVisible(*args, **kwargs)
  6438.  
  6439.     
  6440.     def ItemHasChildren(*args, **kwargs):
  6441.         '''ItemHasChildren(self, TreeItemId item) -> bool'''
  6442.         return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs)
  6443.  
  6444.     
  6445.     def IsExpanded(*args, **kwargs):
  6446.         '''IsExpanded(self, TreeItemId item) -> bool'''
  6447.         return _controls_.TreeCtrl_IsExpanded(*args, **kwargs)
  6448.  
  6449.     
  6450.     def IsSelected(*args, **kwargs):
  6451.         '''IsSelected(self, TreeItemId item) -> bool'''
  6452.         return _controls_.TreeCtrl_IsSelected(*args, **kwargs)
  6453.  
  6454.     
  6455.     def IsBold(*args, **kwargs):
  6456.         '''IsBold(self, TreeItemId item) -> bool'''
  6457.         return _controls_.TreeCtrl_IsBold(*args, **kwargs)
  6458.  
  6459.     
  6460.     def GetChildrenCount(*args, **kwargs):
  6461.         '''GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t'''
  6462.         return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs)
  6463.  
  6464.     
  6465.     def GetRootItem(*args, **kwargs):
  6466.         '''GetRootItem(self) -> TreeItemId'''
  6467.         return _controls_.TreeCtrl_GetRootItem(*args, **kwargs)
  6468.  
  6469.     
  6470.     def GetSelection(*args, **kwargs):
  6471.         '''GetSelection(self) -> TreeItemId'''
  6472.         return _controls_.TreeCtrl_GetSelection(*args, **kwargs)
  6473.  
  6474.     
  6475.     def GetSelections(*args, **kwargs):
  6476.         '''GetSelections(self) -> PyObject'''
  6477.         return _controls_.TreeCtrl_GetSelections(*args, **kwargs)
  6478.  
  6479.     
  6480.     def GetItemParent(*args, **kwargs):
  6481.         '''GetItemParent(self, TreeItemId item) -> TreeItemId'''
  6482.         return _controls_.TreeCtrl_GetItemParent(*args, **kwargs)
  6483.  
  6484.     
  6485.     def GetFirstChild(*args, **kwargs):
  6486.         '''GetFirstChild(self, TreeItemId item) -> PyObject'''
  6487.         return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs)
  6488.  
  6489.     
  6490.     def GetNextChild(*args, **kwargs):
  6491.         '''GetNextChild(self, TreeItemId item, void cookie) -> PyObject'''
  6492.         return _controls_.TreeCtrl_GetNextChild(*args, **kwargs)
  6493.  
  6494.     
  6495.     def GetLastChild(*args, **kwargs):
  6496.         '''GetLastChild(self, TreeItemId item) -> TreeItemId'''
  6497.         return _controls_.TreeCtrl_GetLastChild(*args, **kwargs)
  6498.  
  6499.     
  6500.     def GetNextSibling(*args, **kwargs):
  6501.         '''GetNextSibling(self, TreeItemId item) -> TreeItemId'''
  6502.         return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs)
  6503.  
  6504.     
  6505.     def GetPrevSibling(*args, **kwargs):
  6506.         '''GetPrevSibling(self, TreeItemId item) -> TreeItemId'''
  6507.         return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs)
  6508.  
  6509.     
  6510.     def GetFirstVisibleItem(*args, **kwargs):
  6511.         '''GetFirstVisibleItem(self) -> TreeItemId'''
  6512.         return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs)
  6513.  
  6514.     
  6515.     def GetNextVisible(*args, **kwargs):
  6516.         '''GetNextVisible(self, TreeItemId item) -> TreeItemId'''
  6517.         return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs)
  6518.  
  6519.     
  6520.     def GetPrevVisible(*args, **kwargs):
  6521.         '''GetPrevVisible(self, TreeItemId item) -> TreeItemId'''
  6522.         return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs)
  6523.  
  6524.     
  6525.     def AddRoot(*args, **kwargs):
  6526.         '''AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId'''
  6527.         return _controls_.TreeCtrl_AddRoot(*args, **kwargs)
  6528.  
  6529.     
  6530.     def PrependItem(*args, **kwargs):
  6531.         '''
  6532.         PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, 
  6533.             TreeItemData data=None) -> TreeItemId
  6534.         '''
  6535.         return _controls_.TreeCtrl_PrependItem(*args, **kwargs)
  6536.  
  6537.     
  6538.     def InsertItem(*args, **kwargs):
  6539.         '''
  6540.         InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, 
  6541.             int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
  6542.         '''
  6543.         return _controls_.TreeCtrl_InsertItem(*args, **kwargs)
  6544.  
  6545.     
  6546.     def InsertItemBefore(*args, **kwargs):
  6547.         '''
  6548.         InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, 
  6549.             int selectedImage=-1, TreeItemData data=None) -> TreeItemId
  6550.         '''
  6551.         return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs)
  6552.  
  6553.     
  6554.     def AppendItem(*args, **kwargs):
  6555.         '''
  6556.         AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, 
  6557.             TreeItemData data=None) -> TreeItemId
  6558.         '''
  6559.         return _controls_.TreeCtrl_AppendItem(*args, **kwargs)
  6560.  
  6561.     
  6562.     def Delete(*args, **kwargs):
  6563.         '''Delete(self, TreeItemId item)'''
  6564.         return _controls_.TreeCtrl_Delete(*args, **kwargs)
  6565.  
  6566.     
  6567.     def DeleteChildren(*args, **kwargs):
  6568.         '''DeleteChildren(self, TreeItemId item)'''
  6569.         return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs)
  6570.  
  6571.     
  6572.     def DeleteAllItems(*args, **kwargs):
  6573.         '''DeleteAllItems(self)'''
  6574.         return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs)
  6575.  
  6576.     
  6577.     def Expand(*args, **kwargs):
  6578.         '''Expand(self, TreeItemId item)'''
  6579.         return _controls_.TreeCtrl_Expand(*args, **kwargs)
  6580.  
  6581.     
  6582.     def Collapse(*args, **kwargs):
  6583.         '''Collapse(self, TreeItemId item)'''
  6584.         return _controls_.TreeCtrl_Collapse(*args, **kwargs)
  6585.  
  6586.     
  6587.     def CollapseAndReset(*args, **kwargs):
  6588.         '''CollapseAndReset(self, TreeItemId item)'''
  6589.         return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs)
  6590.  
  6591.     
  6592.     def Toggle(*args, **kwargs):
  6593.         '''Toggle(self, TreeItemId item)'''
  6594.         return _controls_.TreeCtrl_Toggle(*args, **kwargs)
  6595.  
  6596.     
  6597.     def Unselect(*args, **kwargs):
  6598.         '''Unselect(self)'''
  6599.         return _controls_.TreeCtrl_Unselect(*args, **kwargs)
  6600.  
  6601.     
  6602.     def UnselectItem(*args, **kwargs):
  6603.         '''UnselectItem(self, TreeItemId item)'''
  6604.         return _controls_.TreeCtrl_UnselectItem(*args, **kwargs)
  6605.  
  6606.     
  6607.     def UnselectAll(*args, **kwargs):
  6608.         '''UnselectAll(self)'''
  6609.         return _controls_.TreeCtrl_UnselectAll(*args, **kwargs)
  6610.  
  6611.     
  6612.     def SelectItem(*args, **kwargs):
  6613.         '''SelectItem(self, TreeItemId item, bool select=True)'''
  6614.         return _controls_.TreeCtrl_SelectItem(*args, **kwargs)
  6615.  
  6616.     
  6617.     def ToggleItemSelection(*args, **kwargs):
  6618.         '''ToggleItemSelection(self, TreeItemId item)'''
  6619.         return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs)
  6620.  
  6621.     
  6622.     def EnsureVisible(*args, **kwargs):
  6623.         '''EnsureVisible(self, TreeItemId item)'''
  6624.         return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs)
  6625.  
  6626.     
  6627.     def ScrollTo(*args, **kwargs):
  6628.         '''ScrollTo(self, TreeItemId item)'''
  6629.         return _controls_.TreeCtrl_ScrollTo(*args, **kwargs)
  6630.  
  6631.     
  6632.     def EditLabel(*args, **kwargs):
  6633.         '''EditLabel(self, TreeItemId item)'''
  6634.         return _controls_.TreeCtrl_EditLabel(*args, **kwargs)
  6635.  
  6636.     
  6637.     def GetEditControl(*args, **kwargs):
  6638.         '''GetEditControl(self) -> TextCtrl'''
  6639.         return _controls_.TreeCtrl_GetEditControl(*args, **kwargs)
  6640.  
  6641.     
  6642.     def EndEditLabel(*args, **kwargs):
  6643.         '''EndEditLabel(self, TreeItemId item, bool discardChanges=False)'''
  6644.         return _controls_.TreeCtrl_EndEditLabel(*args, **kwargs)
  6645.  
  6646.     
  6647.     def SortChildren(*args, **kwargs):
  6648.         '''SortChildren(self, TreeItemId item)'''
  6649.         return _controls_.TreeCtrl_SortChildren(*args, **kwargs)
  6650.  
  6651.     
  6652.     def HitTest(*args, **kwargs):
  6653.         '''
  6654.         HitTest(Point point) -> (item, where)
  6655.  
  6656.         Determine which item (if any) belongs the given point.  The coordinates
  6657.         specified are relative to the client area of tree ctrl and the where return
  6658.         value is set to a bitmask of wxTREE_HITTEST_xxx constants.
  6659.  
  6660.         '''
  6661.         return _controls_.TreeCtrl_HitTest(*args, **kwargs)
  6662.  
  6663.     
  6664.     def GetBoundingRect(*args, **kwargs):
  6665.         '''GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject'''
  6666.         return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs)
  6667.  
  6668.     
  6669.     def SetState(*args, **kwargs):
  6670.         '''SetState(self, TreeItemId node, int state)'''
  6671.         return _controls_.TreeCtrl_SetState(*args, **kwargs)
  6672.  
  6673.     
  6674.     def GetState(*args, **kwargs):
  6675.         '''GetState(self, TreeItemId node) -> int'''
  6676.         return _controls_.TreeCtrl_GetState(*args, **kwargs)
  6677.  
  6678.     
  6679.     def GetClassDefaultAttributes(*args, **kwargs):
  6680.         """
  6681.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  6682.  
  6683.         Get the default attributes for this class.  This is useful if you want
  6684.         to use the same font or colour in your own control as in a standard
  6685.         control -- which is a much better idea than hard coding specific
  6686.         colours or fonts which might look completely out of place on the
  6687.         user's system, especially if it uses themes.
  6688.  
  6689.         The variant parameter is only relevant under Mac currently and is
  6690.         ignore under other platforms. Under Mac, it will change the size of
  6691.         the returned font. See `wx.Window.SetWindowVariant` for more about
  6692.         this.
  6693.         """
  6694.         return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
  6695.  
  6696.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  6697.  
  6698.  
  6699. class TreeCtrlPtr(TreeCtrl):
  6700.     
  6701.     def __init__(self, this):
  6702.         self.this = this
  6703.         if not hasattr(self, 'thisown'):
  6704.             self.thisown = 0
  6705.         
  6706.         self.__class__ = TreeCtrl
  6707.  
  6708.  
  6709. _controls_.TreeCtrl_swigregister(TreeCtrlPtr)
  6710.  
  6711. def PreTreeCtrl(*args, **kwargs):
  6712.     '''PreTreeCtrl() -> TreeCtrl'''
  6713.     val = _controls_.new_PreTreeCtrl(*args, **kwargs)
  6714.     val.thisown = 1
  6715.     return val
  6716.  
  6717.  
  6718. def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs):
  6719.     """
  6720.     TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  6721.  
  6722.     Get the default attributes for this class.  This is useful if you want
  6723.     to use the same font or colour in your own control as in a standard
  6724.     control -- which is a much better idea than hard coding specific
  6725.     colours or fonts which might look completely out of place on the
  6726.     user's system, especially if it uses themes.
  6727.  
  6728.     The variant parameter is only relevant under Mac currently and is
  6729.     ignore under other platforms. Under Mac, it will change the size of
  6730.     the returned font. See `wx.Window.SetWindowVariant` for more about
  6731.     this.
  6732.     """
  6733.     return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs)
  6734.  
  6735. DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY
  6736. DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST
  6737. DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS
  6738. DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL
  6739. DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS
  6740.  
  6741. class GenericDirCtrl(_core.Control):
  6742.     '''Proxy of C++ GenericDirCtrl class'''
  6743.     
  6744.     def __repr__(self):
  6745.         return '<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6746.  
  6747.     
  6748.     def __init__(self, *args, **kwargs):
  6749.         '''
  6750.         __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, 
  6751.             Point pos=DefaultPosition, Size size=DefaultSize, 
  6752.             long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, 
  6753.             String filter=EmptyString, 
  6754.             int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
  6755.         '''
  6756.         newobj = _controls_.new_GenericDirCtrl(*args, **kwargs)
  6757.         self.this = newobj.this
  6758.         self.thisown = 1
  6759.         del newobj.thisown
  6760.         self._setOORInfo(self)
  6761.  
  6762.     
  6763.     def Create(*args, **kwargs):
  6764.         '''
  6765.         Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, 
  6766.             Point pos=DefaultPosition, Size size=DefaultSize, 
  6767.             long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, 
  6768.             String filter=EmptyString, 
  6769.             int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
  6770.         '''
  6771.         return _controls_.GenericDirCtrl_Create(*args, **kwargs)
  6772.  
  6773.     
  6774.     def ExpandPath(*args, **kwargs):
  6775.         '''ExpandPath(self, String path) -> bool'''
  6776.         return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs)
  6777.  
  6778.     
  6779.     def GetDefaultPath(*args, **kwargs):
  6780.         '''GetDefaultPath(self) -> String'''
  6781.         return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs)
  6782.  
  6783.     
  6784.     def SetDefaultPath(*args, **kwargs):
  6785.         '''SetDefaultPath(self, String path)'''
  6786.         return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs)
  6787.  
  6788.     
  6789.     def GetPath(*args, **kwargs):
  6790.         '''GetPath(self) -> String'''
  6791.         return _controls_.GenericDirCtrl_GetPath(*args, **kwargs)
  6792.  
  6793.     
  6794.     def GetFilePath(*args, **kwargs):
  6795.         '''GetFilePath(self) -> String'''
  6796.         return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs)
  6797.  
  6798.     
  6799.     def SetPath(*args, **kwargs):
  6800.         '''SetPath(self, String path)'''
  6801.         return _controls_.GenericDirCtrl_SetPath(*args, **kwargs)
  6802.  
  6803.     
  6804.     def ShowHidden(*args, **kwargs):
  6805.         '''ShowHidden(self, bool show)'''
  6806.         return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs)
  6807.  
  6808.     
  6809.     def GetShowHidden(*args, **kwargs):
  6810.         '''GetShowHidden(self) -> bool'''
  6811.         return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs)
  6812.  
  6813.     
  6814.     def GetFilter(*args, **kwargs):
  6815.         '''GetFilter(self) -> String'''
  6816.         return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs)
  6817.  
  6818.     
  6819.     def SetFilter(*args, **kwargs):
  6820.         '''SetFilter(self, String filter)'''
  6821.         return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs)
  6822.  
  6823.     
  6824.     def GetFilterIndex(*args, **kwargs):
  6825.         '''GetFilterIndex(self) -> int'''
  6826.         return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs)
  6827.  
  6828.     
  6829.     def SetFilterIndex(*args, **kwargs):
  6830.         '''SetFilterIndex(self, int n)'''
  6831.         return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs)
  6832.  
  6833.     
  6834.     def GetRootId(*args, **kwargs):
  6835.         '''GetRootId(self) -> TreeItemId'''
  6836.         return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs)
  6837.  
  6838.     
  6839.     def GetTreeCtrl(*args, **kwargs):
  6840.         '''GetTreeCtrl(self) -> TreeCtrl'''
  6841.         return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs)
  6842.  
  6843.     
  6844.     def GetFilterListCtrl(*args, **kwargs):
  6845.         '''GetFilterListCtrl(self) -> DirFilterListCtrl'''
  6846.         return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs)
  6847.  
  6848.     
  6849.     def FindChild(*args, **kwargs):
  6850.         '''
  6851.         FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
  6852.  
  6853.         Find the child that matches the first part of \'path\'.  E.g. if a child
  6854.         path is "/usr" and \'path\' is "/usr/include" then the child for
  6855.         /usr is returned.  If the path string has been used (we\'re at the
  6856.         leaf), done is set to True.
  6857.  
  6858.         '''
  6859.         return _controls_.GenericDirCtrl_FindChild(*args, **kwargs)
  6860.  
  6861.     
  6862.     def DoResize(*args, **kwargs):
  6863.         '''DoResize(self)'''
  6864.         return _controls_.GenericDirCtrl_DoResize(*args, **kwargs)
  6865.  
  6866.     
  6867.     def ReCreateTree(*args, **kwargs):
  6868.         '''ReCreateTree(self)'''
  6869.         return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs)
  6870.  
  6871.  
  6872.  
  6873. class GenericDirCtrlPtr(GenericDirCtrl):
  6874.     
  6875.     def __init__(self, this):
  6876.         self.this = this
  6877.         if not hasattr(self, 'thisown'):
  6878.             self.thisown = 0
  6879.         
  6880.         self.__class__ = GenericDirCtrl
  6881.  
  6882.  
  6883. _controls_.GenericDirCtrl_swigregister(GenericDirCtrlPtr)
  6884. DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr
  6885.  
  6886. def PreGenericDirCtrl(*args, **kwargs):
  6887.     '''PreGenericDirCtrl() -> GenericDirCtrl'''
  6888.     val = _controls_.new_PreGenericDirCtrl(*args, **kwargs)
  6889.     val.thisown = 1
  6890.     return val
  6891.  
  6892.  
  6893. class DirFilterListCtrl(Choice):
  6894.     '''Proxy of C++ DirFilterListCtrl class'''
  6895.     
  6896.     def __repr__(self):
  6897.         return '<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6898.  
  6899.     
  6900.     def __init__(self, *args, **kwargs):
  6901.         '''
  6902.         __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, 
  6903.             Size size=DefaultSize, long style=0) -> DirFilterListCtrl
  6904.         '''
  6905.         newobj = _controls_.new_DirFilterListCtrl(*args, **kwargs)
  6906.         self.this = newobj.this
  6907.         self.thisown = 1
  6908.         del newobj.thisown
  6909.         self._setOORInfo(self)
  6910.  
  6911.     
  6912.     def Create(*args, **kwargs):
  6913.         '''
  6914.         Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, 
  6915.             Size size=DefaultSize, long style=0) -> bool
  6916.         '''
  6917.         return _controls_.DirFilterListCtrl_Create(*args, **kwargs)
  6918.  
  6919.     
  6920.     def FillFilterList(*args, **kwargs):
  6921.         '''FillFilterList(self, String filter, int defaultFilter)'''
  6922.         return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs)
  6923.  
  6924.  
  6925.  
  6926. class DirFilterListCtrlPtr(DirFilterListCtrl):
  6927.     
  6928.     def __init__(self, this):
  6929.         self.this = this
  6930.         if not hasattr(self, 'thisown'):
  6931.             self.thisown = 0
  6932.         
  6933.         self.__class__ = DirFilterListCtrl
  6934.  
  6935.  
  6936. _controls_.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr)
  6937.  
  6938. def PreDirFilterListCtrl(*args, **kwargs):
  6939.     '''PreDirFilterListCtrl() -> DirFilterListCtrl'''
  6940.     val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs)
  6941.     val.thisown = 1
  6942.     return val
  6943.  
  6944.  
  6945. class PyControl(_core.Control):
  6946.     '''Proxy of C++ PyControl class'''
  6947.     
  6948.     def __repr__(self):
  6949.         return '<%s.%s; proxy of C++ wxPyControl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6950.  
  6951.     
  6952.     def __init__(self, *args, **kwargs):
  6953.         '''
  6954.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  6955.             Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, 
  6956.             String name=ControlNameStr) -> PyControl
  6957.         '''
  6958.         newobj = _controls_.new_PyControl(*args, **kwargs)
  6959.         self.this = newobj.this
  6960.         self.thisown = 1
  6961.         del newobj.thisown
  6962.         self._setOORInfo(self)
  6963.         self._setCallbackInfo(self, PyControl)
  6964.  
  6965.     
  6966.     def _setCallbackInfo(*args, **kwargs):
  6967.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6968.         return _controls_.PyControl__setCallbackInfo(*args, **kwargs)
  6969.  
  6970.     
  6971.     def SetBestSize(*args, **kwargs):
  6972.         '''SetBestSize(self, Size size)'''
  6973.         return _controls_.PyControl_SetBestSize(*args, **kwargs)
  6974.  
  6975.     
  6976.     def DoEraseBackground(*args, **kwargs):
  6977.         '''DoEraseBackground(self, DC dc) -> bool'''
  6978.         return _controls_.PyControl_DoEraseBackground(*args, **kwargs)
  6979.  
  6980.     
  6981.     def base_DoMoveWindow(*args, **kwargs):
  6982.         '''base_DoMoveWindow(self, int x, int y, int width, int height)'''
  6983.         return _controls_.PyControl_base_DoMoveWindow(*args, **kwargs)
  6984.  
  6985.     
  6986.     def base_DoSetSize(*args, **kwargs):
  6987.         '''base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)'''
  6988.         return _controls_.PyControl_base_DoSetSize(*args, **kwargs)
  6989.  
  6990.     
  6991.     def base_DoSetClientSize(*args, **kwargs):
  6992.         '''base_DoSetClientSize(self, int width, int height)'''
  6993.         return _controls_.PyControl_base_DoSetClientSize(*args, **kwargs)
  6994.  
  6995.     
  6996.     def base_DoSetVirtualSize(*args, **kwargs):
  6997.         '''base_DoSetVirtualSize(self, int x, int y)'''
  6998.         return _controls_.PyControl_base_DoSetVirtualSize(*args, **kwargs)
  6999.  
  7000.     
  7001.     def base_DoGetSize(*args, **kwargs):
  7002.         '''base_DoGetSize() -> (width, height)'''
  7003.         return _controls_.PyControl_base_DoGetSize(*args, **kwargs)
  7004.  
  7005.     
  7006.     def base_DoGetClientSize(*args, **kwargs):
  7007.         '''base_DoGetClientSize() -> (width, height)'''
  7008.         return _controls_.PyControl_base_DoGetClientSize(*args, **kwargs)
  7009.  
  7010.     
  7011.     def base_DoGetPosition(*args, **kwargs):
  7012.         '''base_DoGetPosition() -> (x,y)'''
  7013.         return _controls_.PyControl_base_DoGetPosition(*args, **kwargs)
  7014.  
  7015.     
  7016.     def base_DoGetVirtualSize(*args, **kwargs):
  7017.         '''base_DoGetVirtualSize(self) -> Size'''
  7018.         return _controls_.PyControl_base_DoGetVirtualSize(*args, **kwargs)
  7019.  
  7020.     
  7021.     def base_DoGetBestSize(*args, **kwargs):
  7022.         '''base_DoGetBestSize(self) -> Size'''
  7023.         return _controls_.PyControl_base_DoGetBestSize(*args, **kwargs)
  7024.  
  7025.     
  7026.     def base_InitDialog(*args, **kwargs):
  7027.         '''base_InitDialog(self)'''
  7028.         return _controls_.PyControl_base_InitDialog(*args, **kwargs)
  7029.  
  7030.     
  7031.     def base_TransferDataToWindow(*args, **kwargs):
  7032.         '''base_TransferDataToWindow(self) -> bool'''
  7033.         return _controls_.PyControl_base_TransferDataToWindow(*args, **kwargs)
  7034.  
  7035.     
  7036.     def base_TransferDataFromWindow(*args, **kwargs):
  7037.         '''base_TransferDataFromWindow(self) -> bool'''
  7038.         return _controls_.PyControl_base_TransferDataFromWindow(*args, **kwargs)
  7039.  
  7040.     
  7041.     def base_Validate(*args, **kwargs):
  7042.         '''base_Validate(self) -> bool'''
  7043.         return _controls_.PyControl_base_Validate(*args, **kwargs)
  7044.  
  7045.     
  7046.     def base_AcceptsFocus(*args, **kwargs):
  7047.         '''base_AcceptsFocus(self) -> bool'''
  7048.         return _controls_.PyControl_base_AcceptsFocus(*args, **kwargs)
  7049.  
  7050.     
  7051.     def base_AcceptsFocusFromKeyboard(*args, **kwargs):
  7052.         '''base_AcceptsFocusFromKeyboard(self) -> bool'''
  7053.         return _controls_.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs)
  7054.  
  7055.     
  7056.     def base_GetMaxSize(*args, **kwargs):
  7057.         '''base_GetMaxSize(self) -> Size'''
  7058.         return _controls_.PyControl_base_GetMaxSize(*args, **kwargs)
  7059.  
  7060.     
  7061.     def base_AddChild(*args, **kwargs):
  7062.         '''base_AddChild(self, Window child)'''
  7063.         return _controls_.PyControl_base_AddChild(*args, **kwargs)
  7064.  
  7065.     
  7066.     def base_RemoveChild(*args, **kwargs):
  7067.         '''base_RemoveChild(self, Window child)'''
  7068.         return _controls_.PyControl_base_RemoveChild(*args, **kwargs)
  7069.  
  7070.     
  7071.     def base_ShouldInheritColours(*args, **kwargs):
  7072.         '''base_ShouldInheritColours(self) -> bool'''
  7073.         return _controls_.PyControl_base_ShouldInheritColours(*args, **kwargs)
  7074.  
  7075.     
  7076.     def base_GetDefaultAttributes(*args, **kwargs):
  7077.         '''base_GetDefaultAttributes(self) -> VisualAttributes'''
  7078.         return _controls_.PyControl_base_GetDefaultAttributes(*args, **kwargs)
  7079.  
  7080.     
  7081.     def base_OnInternalIdle(*args, **kwargs):
  7082.         '''base_OnInternalIdle(self)'''
  7083.         return _controls_.PyControl_base_OnInternalIdle(*args, **kwargs)
  7084.  
  7085.  
  7086.  
  7087. class PyControlPtr(PyControl):
  7088.     
  7089.     def __init__(self, this):
  7090.         self.this = this
  7091.         if not hasattr(self, 'thisown'):
  7092.             self.thisown = 0
  7093.         
  7094.         self.__class__ = PyControl
  7095.  
  7096.  
  7097. _controls_.PyControl_swigregister(PyControlPtr)
  7098.  
  7099. def PrePyControl(*args, **kwargs):
  7100.     '''PrePyControl() -> PyControl'''
  7101.     val = _controls_.new_PrePyControl(*args, **kwargs)
  7102.     val.thisown = 1
  7103.     return val
  7104.  
  7105. FRAME_EX_CONTEXTHELP = _controls_.FRAME_EX_CONTEXTHELP
  7106. DIALOG_EX_CONTEXTHELP = _controls_.DIALOG_EX_CONTEXTHELP
  7107. wxEVT_HELP = _controls_.wxEVT_HELP
  7108. wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP
  7109. EVT_HELP = wx.PyEventBinder(wxEVT_HELP, 1)
  7110. EVT_HELP_RANGE = wx.PyEventBinder(wxEVT_HELP, 2)
  7111. EVT_DETAILED_HELP = wx.PyEventBinder(wxEVT_DETAILED_HELP, 1)
  7112. EVT_DETAILED_HELP_RANGE = wx.PyEventBinder(wxEVT_DETAILED_HELP, 2)
  7113.  
  7114. class HelpEvent(_core.CommandEvent):
  7115.     '''
  7116.     A help event is sent when the user has requested context-sensitive
  7117.     help. This can either be caused by the application requesting
  7118.     context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
  7119.     the system generating a WM_HELP message when the user pressed F1 or
  7120.     clicked on the query button in a dialog caption.
  7121.  
  7122.     A help event is sent to the window that the user clicked on, and is
  7123.     propagated up the window hierarchy until the event is processed or
  7124.     there are no more event handlers. The application should call
  7125.     event.GetId to check the identity of the clicked-on window, and then
  7126.     either show some suitable help or call event.Skip if the identifier is
  7127.     unrecognised. Calling Skip is important because it allows wxWindows to
  7128.     generate further events for ancestors of the clicked-on
  7129.     window. Otherwise it would be impossible to show help for container
  7130.     windows, since processing would stop after the first window found.
  7131.     '''
  7132.     
  7133.     def __repr__(self):
  7134.         return '<%s.%s; proxy of C++ wxHelpEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7135.  
  7136.     
  7137.     def __init__(self, *args, **kwargs):
  7138.         '''__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent'''
  7139.         newobj = _controls_.new_HelpEvent(*args, **kwargs)
  7140.         self.this = newobj.this
  7141.         self.thisown = 1
  7142.         del newobj.thisown
  7143.  
  7144.     
  7145.     def GetPosition(*args, **kwargs):
  7146.         '''
  7147.         GetPosition(self) -> Point
  7148.  
  7149.         Returns the left-click position of the mouse, in screen
  7150.         coordinates. This allows the application to position the help
  7151.         appropriately.
  7152.         '''
  7153.         return _controls_.HelpEvent_GetPosition(*args, **kwargs)
  7154.  
  7155.     
  7156.     def SetPosition(*args, **kwargs):
  7157.         '''
  7158.         SetPosition(self, Point pos)
  7159.  
  7160.         Sets the left-click position of the mouse, in screen coordinates.
  7161.         '''
  7162.         return _controls_.HelpEvent_SetPosition(*args, **kwargs)
  7163.  
  7164.     
  7165.     def GetLink(*args, **kwargs):
  7166.         '''
  7167.         GetLink(self) -> String
  7168.  
  7169.         Get an optional link to further help
  7170.         '''
  7171.         return _controls_.HelpEvent_GetLink(*args, **kwargs)
  7172.  
  7173.     
  7174.     def SetLink(*args, **kwargs):
  7175.         '''
  7176.         SetLink(self, String link)
  7177.  
  7178.         Set an optional link to further help
  7179.         '''
  7180.         return _controls_.HelpEvent_SetLink(*args, **kwargs)
  7181.  
  7182.     
  7183.     def GetTarget(*args, **kwargs):
  7184.         '''
  7185.         GetTarget(self) -> String
  7186.  
  7187.         Get an optional target to display help in. E.g. a window specification
  7188.         '''
  7189.         return _controls_.HelpEvent_GetTarget(*args, **kwargs)
  7190.  
  7191.     
  7192.     def SetTarget(*args, **kwargs):
  7193.         '''
  7194.         SetTarget(self, String target)
  7195.  
  7196.         Set an optional target to display help in. E.g. a window specification
  7197.         '''
  7198.         return _controls_.HelpEvent_SetTarget(*args, **kwargs)
  7199.  
  7200.  
  7201.  
  7202. class HelpEventPtr(HelpEvent):
  7203.     
  7204.     def __init__(self, this):
  7205.         self.this = this
  7206.         if not hasattr(self, 'thisown'):
  7207.             self.thisown = 0
  7208.         
  7209.         self.__class__ = HelpEvent
  7210.  
  7211.  
  7212. _controls_.HelpEvent_swigregister(HelpEventPtr)
  7213.  
  7214. class ContextHelp(_core.Object):
  7215.     """
  7216.     This class changes the cursor to a query and puts the application into
  7217.     a 'context-sensitive help mode'. When the user left-clicks on a window
  7218.     within the specified window, a ``EVT_HELP`` event is sent to that
  7219.     control, and the application may respond to it by popping up some
  7220.     help.
  7221.  
  7222.     There are a couple of ways to invoke this behaviour implicitly:
  7223.  
  7224.         * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
  7225.           (Windows only). This will put a question mark in the titlebar,
  7226.           and Windows will put the application into context-sensitive help
  7227.           mode automatically, with further programming.
  7228.  
  7229.         * Create a `wx.ContextHelpButton`, whose predefined behaviour is
  7230.           to create a context help object. Normally you will write your
  7231.           application so that this button is only added to a dialog for
  7232.           non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
  7233.           Windows).
  7234.  
  7235.     :see: `wx.ContextHelpButton`
  7236.  
  7237.     """
  7238.     
  7239.     def __repr__(self):
  7240.         return '<%s.%s; proxy of C++ wxContextHelp instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7241.  
  7242.     
  7243.     def __init__(self, *args, **kwargs):
  7244.         '''
  7245.         __init__(self, Window window=None, bool doNow=True) -> ContextHelp
  7246.  
  7247.         Constructs a context help object, calling BeginContextHelp if doNow is
  7248.         true (the default).
  7249.  
  7250.         If window is None, the top window is used.
  7251.         '''
  7252.         newobj = _controls_.new_ContextHelp(*args, **kwargs)
  7253.         self.this = newobj.this
  7254.         self.thisown = 1
  7255.         del newobj.thisown
  7256.  
  7257.     
  7258.     def __del__(self, destroy = _controls_.delete_ContextHelp):
  7259.         '''__del__(self)'''
  7260.         
  7261.         try:
  7262.             if self.thisown:
  7263.                 destroy(self)
  7264.         except:
  7265.             pass
  7266.  
  7267.  
  7268.     
  7269.     def BeginContextHelp(*args, **kwargs):
  7270.         '''
  7271.         BeginContextHelp(self, Window window=None) -> bool
  7272.  
  7273.         Puts the application into context-sensitive help mode. window is the
  7274.         window which will be used to catch events; if NULL, the top window
  7275.         will be used.
  7276.  
  7277.         Returns true if the application was successfully put into
  7278.         context-sensitive help mode. This function only returns when the event
  7279.         loop has finished.
  7280.         '''
  7281.         return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs)
  7282.  
  7283.     
  7284.     def EndContextHelp(*args, **kwargs):
  7285.         '''
  7286.         EndContextHelp(self) -> bool
  7287.  
  7288.         Ends context-sensitive help mode. Not normally called by the
  7289.         application.
  7290.         '''
  7291.         return _controls_.ContextHelp_EndContextHelp(*args, **kwargs)
  7292.  
  7293.  
  7294.  
  7295. class ContextHelpPtr(ContextHelp):
  7296.     
  7297.     def __init__(self, this):
  7298.         self.this = this
  7299.         if not hasattr(self, 'thisown'):
  7300.             self.thisown = 0
  7301.         
  7302.         self.__class__ = ContextHelp
  7303.  
  7304.  
  7305. _controls_.ContextHelp_swigregister(ContextHelpPtr)
  7306.  
  7307. class ContextHelpButton(BitmapButton):
  7308.     '''
  7309.     Instances of this class may be used to add a question mark button that
  7310.     when pressed, puts the application into context-help mode. It does
  7311.     this by creating a wx.ContextHelp object which itself generates a
  7312.     ``EVT_HELP`` event when the user clicks on a window.
  7313.  
  7314.     On Windows, you may add a question-mark icon to a dialog by use of the
  7315.     ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
  7316.     will have to add a button explicitly, usually next to OK, Cancel or
  7317.     similar buttons.
  7318.  
  7319.     :see: `wx.ContextHelp`, `wx.ContextHelpButton`
  7320.  
  7321.     '''
  7322.     
  7323.     def __repr__(self):
  7324.         return '<%s.%s; proxy of C++ wxContextHelpButton instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7325.  
  7326.     
  7327.     def __init__(self, *args, **kwargs):
  7328.         '''
  7329.         __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, 
  7330.             Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
  7331.  
  7332.         Constructor, creating and showing a context help button.
  7333.         '''
  7334.         newobj = _controls_.new_ContextHelpButton(*args, **kwargs)
  7335.         self.this = newobj.this
  7336.         self.thisown = 1
  7337.         del newobj.thisown
  7338.         self._setOORInfo(self)
  7339.  
  7340.  
  7341.  
  7342. class ContextHelpButtonPtr(ContextHelpButton):
  7343.     
  7344.     def __init__(self, this):
  7345.         self.this = this
  7346.         if not hasattr(self, 'thisown'):
  7347.             self.thisown = 0
  7348.         
  7349.         self.__class__ = ContextHelpButton
  7350.  
  7351.  
  7352. _controls_.ContextHelpButton_swigregister(ContextHelpButtonPtr)
  7353.  
  7354. class HelpProvider(object):
  7355.     '''
  7356.     wx.HelpProvider is an abstract class used by a program
  7357.     implementing context-sensitive help to show the help text for the
  7358.     given window.
  7359.  
  7360.     The current help provider must be explicitly set by the
  7361.     application using wx.HelpProvider.Set().
  7362.     '''
  7363.     
  7364.     def __init__(self):
  7365.         raise RuntimeError, 'No constructor defined'
  7366.  
  7367.     
  7368.     def __repr__(self):
  7369.         return '<%s.%s; proxy of C++ wxHelpProvider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7370.  
  7371.     
  7372.     def Set(*args, **kwargs):
  7373.         '''
  7374.         Set(HelpProvider helpProvider) -> HelpProvider
  7375.  
  7376.         Sset the current, application-wide help provider. Returns the previous
  7377.         one.  Unlike some other classes, the help provider is not created on
  7378.         demand. This must be explicitly done by the application.
  7379.         '''
  7380.         return _controls_.HelpProvider_Set(*args, **kwargs)
  7381.  
  7382.     Set = staticmethod(Set)
  7383.     
  7384.     def Get(*args, **kwargs):
  7385.         '''
  7386.         Get() -> HelpProvider
  7387.  
  7388.         Return the current application-wide help provider.
  7389.         '''
  7390.         return _controls_.HelpProvider_Get(*args, **kwargs)
  7391.  
  7392.     Get = staticmethod(Get)
  7393.     
  7394.     def GetHelp(*args, **kwargs):
  7395.         '''
  7396.         GetHelp(self, Window window) -> String
  7397.  
  7398.         Gets the help string for this window. Its interpretation is dependent
  7399.         on the help provider except that empty string always means that no
  7400.         help is associated with the window.
  7401.         '''
  7402.         return _controls_.HelpProvider_GetHelp(*args, **kwargs)
  7403.  
  7404.     
  7405.     def ShowHelp(*args, **kwargs):
  7406.         '''
  7407.         ShowHelp(self, Window window) -> bool
  7408.  
  7409.         Shows help for the given window. Uses GetHelp internally if
  7410.         applicable. Returns True if it was done, or False if no help was
  7411.         available for this window.
  7412.         '''
  7413.         return _controls_.HelpProvider_ShowHelp(*args, **kwargs)
  7414.  
  7415.     
  7416.     def AddHelp(*args, **kwargs):
  7417.         '''
  7418.         AddHelp(self, Window window, String text)
  7419.  
  7420.         Associates the text with the given window.
  7421.         '''
  7422.         return _controls_.HelpProvider_AddHelp(*args, **kwargs)
  7423.  
  7424.     
  7425.     def AddHelpById(*args, **kwargs):
  7426.         '''
  7427.         AddHelpById(self, int id, String text)
  7428.  
  7429.         This version associates the given text with all windows with this
  7430.         id. May be used to set the same help string for all Cancel buttons in
  7431.         the application, for example.
  7432.         '''
  7433.         return _controls_.HelpProvider_AddHelpById(*args, **kwargs)
  7434.  
  7435.     
  7436.     def RemoveHelp(*args, **kwargs):
  7437.         '''
  7438.         RemoveHelp(self, Window window)
  7439.  
  7440.         Removes the association between the window pointer and the help
  7441.         text. This is called by the wx.Window destructor. Without this, the
  7442.         table of help strings will fill up and when window pointers are
  7443.         reused, the wrong help string will be found.
  7444.         '''
  7445.         return _controls_.HelpProvider_RemoveHelp(*args, **kwargs)
  7446.  
  7447.     
  7448.     def Destroy(*args, **kwargs):
  7449.         '''Destroy(self)'''
  7450.         return _controls_.HelpProvider_Destroy(*args, **kwargs)
  7451.  
  7452.  
  7453.  
  7454. class HelpProviderPtr(HelpProvider):
  7455.     
  7456.     def __init__(self, this):
  7457.         self.this = this
  7458.         if not hasattr(self, 'thisown'):
  7459.             self.thisown = 0
  7460.         
  7461.         self.__class__ = HelpProvider
  7462.  
  7463.  
  7464. _controls_.HelpProvider_swigregister(HelpProviderPtr)
  7465.  
  7466. def HelpProvider_Set(*args, **kwargs):
  7467.     '''
  7468.     HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
  7469.  
  7470.     Sset the current, application-wide help provider. Returns the previous
  7471.     one.  Unlike some other classes, the help provider is not created on
  7472.     demand. This must be explicitly done by the application.
  7473.     '''
  7474.     return _controls_.HelpProvider_Set(*args, **kwargs)
  7475.  
  7476.  
  7477. def HelpProvider_Get(*args, **kwargs):
  7478.     '''
  7479.     HelpProvider_Get() -> HelpProvider
  7480.  
  7481.     Return the current application-wide help provider.
  7482.     '''
  7483.     return _controls_.HelpProvider_Get(*args, **kwargs)
  7484.  
  7485.  
  7486. class SimpleHelpProvider(HelpProvider):
  7487.     '''
  7488.     wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
  7489.     supports only plain text help strings, and shows the string associated
  7490.     with the control (if any) in a tooltip.
  7491.     '''
  7492.     
  7493.     def __repr__(self):
  7494.         return '<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7495.  
  7496.     
  7497.     def __init__(self, *args, **kwargs):
  7498.         '''
  7499.         __init__(self) -> SimpleHelpProvider
  7500.  
  7501.         wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
  7502.         supports only plain text help strings, and shows the string associated
  7503.         with the control (if any) in a tooltip.
  7504.         '''
  7505.         newobj = _controls_.new_SimpleHelpProvider(*args, **kwargs)
  7506.         self.this = newobj.this
  7507.         self.thisown = 1
  7508.         del newobj.thisown
  7509.  
  7510.  
  7511.  
  7512. class SimpleHelpProviderPtr(SimpleHelpProvider):
  7513.     
  7514.     def __init__(self, this):
  7515.         self.this = this
  7516.         if not hasattr(self, 'thisown'):
  7517.             self.thisown = 0
  7518.         
  7519.         self.__class__ = SimpleHelpProvider
  7520.  
  7521.  
  7522. _controls_.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr)
  7523.  
  7524. class DragImage(_core.Object):
  7525.     '''Proxy of C++ DragImage class'''
  7526.     
  7527.     def __repr__(self):
  7528.         return '<%s.%s; proxy of C++ wxGenericDragImage instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7529.  
  7530.     
  7531.     def __init__(self, *args, **kwargs):
  7532.         '''__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage'''
  7533.         newobj = _controls_.new_DragImage(*args, **kwargs)
  7534.         self.this = newobj.this
  7535.         self.thisown = 1
  7536.         del newobj.thisown
  7537.  
  7538.     
  7539.     def __del__(self, destroy = _controls_.delete_DragImage):
  7540.         '''__del__(self)'''
  7541.         
  7542.         try:
  7543.             if self.thisown:
  7544.                 destroy(self)
  7545.         except:
  7546.             pass
  7547.  
  7548.  
  7549.     
  7550.     def SetBackingBitmap(*args, **kwargs):
  7551.         '''SetBackingBitmap(self, Bitmap bitmap)'''
  7552.         return _controls_.DragImage_SetBackingBitmap(*args, **kwargs)
  7553.  
  7554.     
  7555.     def BeginDrag(*args, **kwargs):
  7556.         '''
  7557.         BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, 
  7558.             Rect rect=None) -> bool
  7559.         '''
  7560.         return _controls_.DragImage_BeginDrag(*args, **kwargs)
  7561.  
  7562.     
  7563.     def BeginDragBounded(*args, **kwargs):
  7564.         '''BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool'''
  7565.         return _controls_.DragImage_BeginDragBounded(*args, **kwargs)
  7566.  
  7567.     
  7568.     def EndDrag(*args, **kwargs):
  7569.         '''EndDrag(self) -> bool'''
  7570.         return _controls_.DragImage_EndDrag(*args, **kwargs)
  7571.  
  7572.     
  7573.     def Move(*args, **kwargs):
  7574.         '''Move(self, Point pt) -> bool'''
  7575.         return _controls_.DragImage_Move(*args, **kwargs)
  7576.  
  7577.     
  7578.     def Show(*args, **kwargs):
  7579.         '''Show(self) -> bool'''
  7580.         return _controls_.DragImage_Show(*args, **kwargs)
  7581.  
  7582.     
  7583.     def Hide(*args, **kwargs):
  7584.         '''Hide(self) -> bool'''
  7585.         return _controls_.DragImage_Hide(*args, **kwargs)
  7586.  
  7587.     
  7588.     def GetImageRect(*args, **kwargs):
  7589.         '''GetImageRect(self, Point pos) -> Rect'''
  7590.         return _controls_.DragImage_GetImageRect(*args, **kwargs)
  7591.  
  7592.     
  7593.     def DoDrawImage(*args, **kwargs):
  7594.         '''DoDrawImage(self, DC dc, Point pos) -> bool'''
  7595.         return _controls_.DragImage_DoDrawImage(*args, **kwargs)
  7596.  
  7597.     
  7598.     def UpdateBackingFromWindow(*args, **kwargs):
  7599.         '''UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool'''
  7600.         return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs)
  7601.  
  7602.     
  7603.     def RedrawImage(*args, **kwargs):
  7604.         '''RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool'''
  7605.         return _controls_.DragImage_RedrawImage(*args, **kwargs)
  7606.  
  7607.  
  7608.  
  7609. class DragImagePtr(DragImage):
  7610.     
  7611.     def __init__(self, this):
  7612.         self.this = this
  7613.         if not hasattr(self, 'thisown'):
  7614.             self.thisown = 0
  7615.         
  7616.         self.__class__ = DragImage
  7617.  
  7618.  
  7619. _controls_.DragImage_swigregister(DragImagePtr)
  7620.  
  7621. def DragIcon(*args, **kwargs):
  7622.     '''DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage'''
  7623.     val = _controls_.new_DragIcon(*args, **kwargs)
  7624.     val.thisown = 1
  7625.     return val
  7626.  
  7627.  
  7628. def DragString(*args, **kwargs):
  7629.     '''DragString(String str, Cursor cursor=wxNullCursor) -> DragImage'''
  7630.     val = _controls_.new_DragString(*args, **kwargs)
  7631.     val.thisown = 1
  7632.     return val
  7633.  
  7634.  
  7635. def DragTreeItem(*args, **kwargs):
  7636.     '''DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage'''
  7637.     val = _controls_.new_DragTreeItem(*args, **kwargs)
  7638.     val.thisown = 1
  7639.     return val
  7640.  
  7641.  
  7642. def DragListItem(*args, **kwargs):
  7643.     '''DragListItem(ListCtrl listCtrl, long id) -> DragImage'''
  7644.     val = _controls_.new_DragListItem(*args, **kwargs)
  7645.     val.thisown = 1
  7646.     return val
  7647.  
  7648. DP_DEFAULT = _controls_.DP_DEFAULT
  7649. DP_SPIN = _controls_.DP_SPIN
  7650. DP_DROPDOWN = _controls_.DP_DROPDOWN
  7651. DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY
  7652. DP_ALLOWNONE = _controls_.DP_ALLOWNONE
  7653.  
  7654. class DatePickerCtrl(_core.Control):
  7655.     '''
  7656.     This control allows the user to select a date. Unlike
  7657.     `wx.calendar.CalendarCtrl`, which is a relatively big control,
  7658.     `wx.DatePickerCtrl` is implemented as a small window showing the
  7659.     currently selected date. The control can be edited using the keyboard,
  7660.     and can also display a popup window for more user-friendly date
  7661.     selection, depending on the styles used and the platform.
  7662.     '''
  7663.     
  7664.     def __repr__(self):
  7665.         return '<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7666.  
  7667.     
  7668.     def __init__(self, *args, **kwargs):
  7669.         '''
  7670.         __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, 
  7671.             Point pos=DefaultPosition, Size size=DefaultSize, 
  7672.             long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, 
  7673.             Validator validator=DefaultValidator, 
  7674.             String name=DatePickerCtrlNameStr) -> DatePickerCtrl
  7675.  
  7676.         Create a new DatePickerCtrl.
  7677.         '''
  7678.         newobj = _controls_.new_DatePickerCtrl(*args, **kwargs)
  7679.         self.this = newobj.this
  7680.         self.thisown = 1
  7681.         del newobj.thisown
  7682.         self._setOORInfo(self)
  7683.  
  7684.     
  7685.     def Create(*args, **kwargs):
  7686.         '''
  7687.         Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, 
  7688.             Point pos=DefaultPosition, Size size=DefaultSize, 
  7689.             long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, 
  7690.             Validator validator=DefaultValidator, 
  7691.             String name=DatePickerCtrlNameStr) -> bool
  7692.  
  7693.         Create the GUI parts of the DatePickerCtrl, for use in 2-phase
  7694.         creation.
  7695.         '''
  7696.         return _controls_.DatePickerCtrl_Create(*args, **kwargs)
  7697.  
  7698.     
  7699.     def SetValue(*args, **kwargs):
  7700.         '''
  7701.         SetValue(self, DateTime dt)
  7702.  
  7703.         Changes the current value of the control. The date should be valid and
  7704.         included in the currently selected range, if any.
  7705.  
  7706.         Calling this method does not result in a date change event.
  7707.         '''
  7708.         return _controls_.DatePickerCtrl_SetValue(*args, **kwargs)
  7709.  
  7710.     
  7711.     def GetValue(*args, **kwargs):
  7712.         '''
  7713.         GetValue(self) -> DateTime
  7714.  
  7715.         Returns the currently selected date. If there is no selection or the
  7716.         selection is outside of the current range, an invalid `wx.DateTime`
  7717.         object is returned.
  7718.         '''
  7719.         return _controls_.DatePickerCtrl_GetValue(*args, **kwargs)
  7720.  
  7721.     
  7722.     def SetRange(*args, **kwargs):
  7723.         '''
  7724.         SetRange(self, DateTime dt1, DateTime dt2)
  7725.  
  7726.         Sets the valid range for the date selection. If dt1 is valid, it
  7727.         becomes the earliest date (inclusive) accepted by the control. If dt2
  7728.         is valid, it becomes the latest possible date.
  7729.  
  7730.         If the current value of the control is outside of the newly set range
  7731.         bounds, the behaviour is undefined.
  7732.         '''
  7733.         return _controls_.DatePickerCtrl_SetRange(*args, **kwargs)
  7734.  
  7735.     
  7736.     def GetLowerLimit(*args, **kwargs):
  7737.         '''
  7738.         GetLowerLimit(self) -> DateTime
  7739.  
  7740.         Get the lower limit of the valid range for the date selection, if any.
  7741.         If there is no range or there is no lower limit, then the
  7742.         `wx.DateTime` value returned will be invalid.
  7743.         '''
  7744.         return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs)
  7745.  
  7746.     
  7747.     def GetUpperLimit(*args, **kwargs):
  7748.         '''
  7749.         GetUpperLimit(self) -> DateTime
  7750.  
  7751.         Get the upper limit of the valid range for the date selection, if any.
  7752.         If there is no range or there is no upper limit, then the
  7753.         `wx.DateTime` value returned will be invalid.
  7754.         '''
  7755.         return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs)
  7756.  
  7757.  
  7758.  
  7759. class DatePickerCtrlPtr(DatePickerCtrl):
  7760.     
  7761.     def __init__(self, this):
  7762.         self.this = this
  7763.         if not hasattr(self, 'thisown'):
  7764.             self.thisown = 0
  7765.         
  7766.         self.__class__ = DatePickerCtrl
  7767.  
  7768.  
  7769. _controls_.DatePickerCtrl_swigregister(DatePickerCtrlPtr)
  7770. DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr
  7771.  
  7772. def PreDatePickerCtrl(*args, **kwargs):
  7773.     '''
  7774.     PreDatePickerCtrl() -> DatePickerCtrl
  7775.  
  7776.     Precreate a DatePickerCtrl for use in 2-phase creation.
  7777.     '''
  7778.     val = _controls_.new_PreDatePickerCtrl(*args, **kwargs)
  7779.     val.thisown = 1
  7780.     return val
  7781.  
  7782.